Skip to content

The tag string generator (Engineered for making XML or HTML5 soup). In Perl 6 !

License

Notifications You must be signed in to change notification settings

4d47/perl6-tag-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tag

The tag string generator (Engineered for making XML or HTML5 soup). In Perl 6 !

Warning

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.

Why ?

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.

Ideas

  • Its probably best to not output everything if very large gist
  • use the power of macros to port hiccup

About

The tag string generator (Engineered for making XML or HTML5 soup). In Perl 6 !

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages

  • Other 100.0%