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.

  • Comment on Re: Dancer + template toolkit default html filter

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.