Created
January 26, 2011 13:37
-
-
Save bigpresh/796692 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
Start template. | |
<ul> | |
<% FOR number IN foo %> | |
<li><% number %></li> | |
<% END %> | |
</ul> | |
End template. |
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/perl | |
use Dancer; | |
set template => 'template_toolkit'; | |
get '/' => sub { | |
return template 'index', { foo => [ qw(one two three four) ] }; | |
}; | |
dance; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment