Template Tiny
. ├── app.psgi └── views └── main.tt
- The default templating engine is the Tiny engine Dancer2::Template::Tiny
- Template::Tiny
examples/dancer/template-tiny/app.psgi
package App; use Dancer2; debug config->{template}; get '/' => sub { return template 'main.tt', { name => 'Perl Dancer', on => 0, languages => ['Perl', 'Python', 'Go'], perl => { creator => 'Larry Wall', release => 1987, }, fruits => [ { name => 'Apple', color => 'Red', }, { name => 'Banana', color => 'Yellow', }, { name => 'Peach', color => 'Peach', } ], template_name => config->{template}, }; }; App->to_app;