Welcome to the Monastery | |
PerlMonks |
Re^2: How do you use Template Toolkit with Dancer2?by choroba (Cardinal) |
on Apr 26, 2022 at 10:13 UTC ( [id://11143304]=note: print w/replies, xml ) | Need Help?? |
Using Template::Toolkit, create a template like this:
In Dancer2 code, just call it with
Update: Accept any attributes, not just class (not sure I'd recommend it).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|