Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dancer-Template-Xslate CPAN distribution.

Report information
The Basics
Id: 75788
Status: resolved
Priority: 0/
Queue: Dancer-Template-Xslate

People
Owner: Nobody in particular
Requestors: doherty [...] cs.dal.ca
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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
Leaving it up to the user to decide if they want to use Dancer's C<layout> feature or Xslate's smart HTML escaping. Documentation updated in version 0.03.