You have not mentioned Dancer2 at all, so I can only assume that part is irrelevant. In which case, here is my SSCCE:
#!/usr/bin/env perl use strict; use warnings; use utf8; use Template; my $tt = Template->new; my $name = 'François'; my $ttext = <<EOT; As a literal: François As an interpolated variable: $name As a template variable: [% name %] EOT $tt->process (\$ttext, { name => $name });
🦛
In reply to Re^2: How do you use Template Toolkit with Dancer2?
by hippo
in thread How do you use Template Toolkit with Dancer2?
by v3ritas
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |