Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Dancer + template toolkit default html filter

by AlexP (Pilgrim)
on Aug 15, 2021 at 17:09 UTC ( [id://11135855]=note: print w/replies, xml ) Need Help??


in reply to Dancer + template toolkit default html filter

Accidentally found great modern template engine for dancer2 Dancer2::Template::Handlebars.

It's using mustaches {{ }} to interpolate and escaping HTML by default!

There is also cool article about it https://advent.perldancer.org/2020/17.

Replies are listed 'Best First'.
Re^2: Dancer + template toolkit default html filter
by AlexP (Pilgrim) on Aug 15, 2021 at 18:43 UTC

    If you wanna use this module, be aware of one quirk. I think there is a bug with template rendering. I create an issue.

    You can rapidly fix it. Just add a relative path to views in config like:

    views: views

Re^2: Dancer + template toolkit default html filter
by AlexP (Pilgrim) on Aug 15, 2021 at 17:10 UTC

    I think dancer should use it as the default template engine.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11135855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-03-28 13:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found