P is for Practical | |
PerlMonks |
Re^4: How do you use Template Toolkit with Dancer2?by choroba (Cardinal) |
on Apr 27, 2022 at 18:36 UTC ( [id://11143361]=note: print w/replies, xml ) | Need Help?? |
Yes, you're breaking the Model - View - Controller paradigm. You can include the dropdown menu template from other templates, sending only the data from the code (i.e. no "dropdown_menu" in the code).
map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
In Section
Seekers of Perl Wisdom
|
|