Created
July 26, 2013 12:40
-
-
Save gfldex/6088554 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
subset HTML of Str; | |
subset HEAD of Str; | |
subset BODY of Str; | |
sub body( --> BODY ) { '<body></body>' } | |
sub head( --> HEAD ) { '<head></head>' } | |
subset HTML-nodes of Cool where HEAD|BODY; | |
# sub html(HTML-nodes @nodes, :$lang?, :$xml-lang?, :$dir? where * eq 'ltr' | |
sub html(HTML-nodes @nodes --> HTML) { | |
} | |
html([head, body]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment