The tag string generator (Engineered for making XML or HTML5 soup). In Perl 6 !
My friend, this is broken. It is implemented using FALLBACK method, unfortunatly it calls only if all other attempts to locate a method fail. Since parents provide plenty of methods this is not a good idea, eg. as of 2015-11 the tests broke because of a new head
method.
To start writing Perl 6. Was learning the language and wanted something small to play around with, so I thought it would be nice to compare with an an old PHP utility I had.
use Tag;
Tag.a(:$href, :$title, Tag.b($name)).br;
Basically like the Html class described on slide 37 of the Perl 6: beyond dynamic vs. static presentation.
- Its probably best to not output everything if very large gist
- use the power of macros to port hiccup