summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/Dancer/Template/Xslate.pm11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/Dancer/Template/Xslate.pm b/lib/Dancer/Template/Xslate.pm
index c18aec2..151c7a5 100644
--- a/lib/Dancer/Template/Xslate.pm
+++ b/lib/Dancer/Template/Xslate.pm
@@ -68,15 +68,16 @@ In order to use this engine, use the template setting:
This can be done in your config.yml file or directly in your app code with the
B<set> keyword.
-You can configure L<Text::Xslate> :
+You can configure L<Text::Xslate>:
template: xslate
engines:
xslate:
- cache_dir => "/www/../xslate_cache",
- cache => 1,
- module =>
- - Text::Xslate::Bridge::TT2 # to keep partial compatibility
+ cache_dir: .xslate_cache/
+ cache: 1
+ extension: tx # Dancer's default template extension is "tt"
+ module:
+ - Text::Xslate::Bridge::TT2Like # to keep partial compatibility with Template Toolkit
=head1 SEE ALSO