<div dir="ltr">Did this work?</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Feb 21, 2018 at 6:46 AM, Lutz Gehlen <span dir="ltr"><<a href="mailto:lrg_ml@gmx.net" target="_blank">lrg_ml@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Scott,<br>
<br>
thank you for your reply. This looks exactly like the piece of<br>
information I was lacking. I'll be traveling the next couple of<br>
days, but I'll certainly try this approach next week.<br>
<br>
Cheers,<br>
Lutz<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On Tuesday, 20.02.2018 11:40:00 Scott H wrote:<br>
> Looking into what your asking, have you tried this:<br>
> <a href="https://metacpan.org/pod/Dancer2::Template::TemplateToolkit" rel="noreferrer" target="_blank">https://metacpan.org/pod/<wbr>Dancer2::Template::<wbr>TemplateToolkit</a><br>
><br>
> Go to Advanced Customizations and you'll see how to create a<br>
> subclass module to return $tt. Have you tried this method?<br>
><br>
> -Scott<br>
><br>
> On Tue, Feb 20, 2018 at 1:47 AM, Lutz Gehlen <<a href="mailto:lrg_ml@gmx.net">lrg_ml@gmx.net</a>><br>
wrote:<br>
> > Hi Warren,<br>
> ><br>
> > thank you for your reply and your research on the escaping<br>
> > plugins.><br>
> > On Monday, 19.02.2018 10:59:19 Warren Young wrote:<br>
> > > Since you seem to have an itch here, how about you port the<br>
> > > plugin? Then you get the software you want. You’ve got<br>
> > > preexisting code on both sides to work with: the source plugin<br>
> > > and many examples of existing D2 plugins to aid in the<br>
> > > translation.<br>
> ><br>
> > Yes, maybe porting the plugin is the way to go. However, part of<br>
> > my intention in raising this topic on the list was to find out<br>
> > whether a port of Dancer::Plugin::EscapeHTML actually _is_ the<br>
> > software I really want. What made me think was that nobody has<br>
> > done it so far as a solution to what I believed to be a<br>
> > standard problem.<br>
> ><br>
> > Furthermore, the documentation of Dancer::Plugin::EscapeHTML<br>
> > states: "If you're using Template Toolkit, you may wish to look<br>
> > instead at Template::Stash::EscapeHTML which takes care of this<br>
> > reliably at the template engine level, and is more widely-used<br>
> > and tested than this module."<br>
> ><br>
> > This supposedly goes along the same line as Shlomi's suggestion<br>
> > of Template::Stash::AutoEscaping, but so far I have not figured<br>
> > out how to deploy this approach in Dancer.<br>
> ><br>
> > So to come back to your suggestion of porting<br>
> > Dancer::Plugin::EscapeHTML to Dancer2, I will consider it, but<br>
> > need to find out more about whether this is the right way to<br>
> > go.<br>
> ><br>
> > Cheers,<br>
> > Lutz<br>
> ><br>
> > ______________________________<wbr>_________________<br>
> > dancer-users mailing list<br>
> > <a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
> > <a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/<wbr>mailman/listinfo/dancer-users</a><br>
<br>
______________________________<wbr>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/<wbr>mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br></div>