Skip to content

Instantly share code, notes, and snippets.

@shelling
Created August 7, 2009 13:51
Show Gist options
  • Save shelling/163910 to your computer and use it in GitHub Desktop.
Save shelling/163910 to your computer and use it in GitHub Desktop.
prototype of Template::Declare and Markapl
#!/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