Subject: | Views escaped when inserted into layout |
Date: | Thu, 15 Mar 2012 10:33:54 -0400 |
To: | bug-Dancer-Template-Xslate [...] rt.cpan.org |
From: | Mike Doherty <doherty [...] cs.dal.ca> |
Xslate escapes stuff inserted into the templates. So, when you insert
<html_tag ...> into your view, it gets escaped - nice. But then, in
Dancer's typical setup, your view is inserted into a layout... and the
view is then escaped again. So your resulting page shown to the browser
is a sea of escaped/visible HTML. The module should obviously disable
escaping when a view is inserted into a layout.
-Mike