From 8ef9676ec71b63947b761a7f163c1b0cdbc146a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Sim=C3=B5es?= Date: Thu, 12 Apr 2012 19:15:04 -0500 Subject: Further document caveats involving Dancer's C feature. --- lib/Dancer/Template/Xslate.pm | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/lib/Dancer/Template/Xslate.pm b/lib/Dancer/Template/Xslate.pm index 3bb3314..f2446b3 100644 --- a/lib/Dancer/Template/Xslate.pm +++ b/lib/Dancer/Template/Xslate.pm @@ -81,21 +81,21 @@ You can configure L: module: - Text::Xslate::Bridge::TT2Like # to keep partial compatibility with Template Toolkit -=head1 CASCADE +=head1 CAVEATS -Dancer already provides a CASCADE-like ability, which called a "layout". The -reason is written on L +=head2 Cascading -If you might want to use CASCADE, you should turn off "layout" function. +Dancer already provides a -like feature, called a "layout", in order +to augment other template engines lacking such a feature. If you want to use +Xslate's C, turn off C by commenting out or removing the +appropriate line in your Dancer config file. -=over 4 +=head2 Smart HTML Escaping -=item * Disable the layout in Dancer - -You can do this by simply commenting (or removing) the C configuration -in the F file. - -=back +Use of Dancer's C feature will cause HTML templates to be HTML-entity +encoded twice if Xslate's "smart HTML escaping" feature is enabled. Xslate's +C option can be set to "text" to disable smart-escaping, or, once again, +C can be disabled in favor of C. =head1 SEE ALSO -- cgit v1.2.3