Created
August 7, 2009 13:51
-
-
Save shelling/163910 to your computer and use it in GitHub Desktop.
prototype of Template::Declare and Markapl
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
#!/usr/bin/env perl | |
use Data::Dumper; | |
use 5.010; | |
BEGIN { | |
for my $tag (qw(html body table)) { | |
eval qq{ | |
sub $tag (&) { | |
"<$tag>" . shift->() . "</$tag>"; | |
} | |
} | |
} | |
} | |
say html { | |
body { | |
table { | |
my @list = qw(hello world); | |
"@list"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment