GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DANCER::TEMPLATE::XSLATE (3)

.ds Aq ’

NAME

Dancer::Template::Xslate - Text::Xslate wrapper for Dancer

CONTENTS

VERSION

version 0.03

DESCRIPTION

This class is an interface between Dancer’s template engine abstraction layer and the Text::Xslate module.

In order to use this engine, use the template setting:



    template: xslate



This can be done in your config.yml file or directly in your app code with the <B>setB> keyword.

You can configure Text::Xslate:



    template: xslate
    engines:
      xslate:
        cache_dir: .xslate_cache/
        cache:     1
        extension: tx                     # Dancers default template extension is "tt"
        module:
          - Text::Xslate::Bridge::TT2Like # to keep partial compatibility with Template Toolkit



CAVEATS

Cascading Dancer already provides a <cascade>-like feature, called a layout, in order to augment other template engines lacking such a feature. In order to use Xslate’s cascade, turn off layout by commenting out or removing the appropriate line in your Dancer application config.
Smart HTML Escaping Use of Dancer’s layout feature will cause HTML templates to be HTML-entity encoded twice if Xslate’s smart HTML escaping feature is enabled. Xslate’s type option can be set to text to disable smart-escaping, or, once again, layout can be disabled in favor of cascade.

SEE ALSO

Dancer
Text::Xslate

AUTHOR

franck cuny <franck@lumberjaph.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by franck cuny.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DANCER::TEMPLATE::XSLATE (3) 2016-04-04

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.