What can the default simple template handle?
The docs only indicate simple scalars but looking at the code I see some 'if' 'else' 'end' parsing. Does that mean it also handles conditions? Could someone add an example to the docs? My main issue though is that I'd like to do loops. Can I do that with the template system that comes with Dancer or do I need to install TT in order to do it? Gabor -- Gabor Szabo http://szabgab.com/
On Fri, Jun 10, 2011 at 6:31 PM, Gabor Szabo <szabgab@gmail.com> wrote:
My main issue though is that I'd like to do loops. Can I do that with the template system that comes with Dancer or do I need to install TT in order to do it?
If you want conditionals, you should use a different templating system. While Template Toolkit is the most famous, there's Template::Tiny which is * very* slim (but supports conditionals) and Text::Xslate which is *blazing*fast. Both have template engines for Dancer.
participants (2)
-
Gabor Szabo -
sawyer x