Skip to content

Instantly share code, notes, and snippets.

@bigpresh
Created January 26, 2011 13:37
Show Gist options
  • Save bigpresh/796692 to your computer and use it in GitHub Desktop.
Save bigpresh/796692 to your computer and use it in GitHub Desktop.
Start template.
<ul>
<% FOR number IN foo %>
<li><% number %></li>
<% END %>
</ul>
End template.
#!/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