logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Dancer::Template - template wrapper for Dancer

Author

       Dancer Core Developers

Authors

       This module has been written by Alexis Sukrieh. See the AUTHORS file that comes with this distribution
       for details.

Description

       This module is the wrapper that provides support for different template engines.

License

       This module is free software and is released under the same terms as Perl itself.

Name

       Dancer::Template - template wrapper for Dancer

See Also

       See Dancer for details about the complete framework.

       You can also search the CPAN for existing engines in the Dancer::Template namespace.

Usage

Defaultengine
       The default engine used by Dancer::Template is Dancer::Template::Simple.  If you want to change the
       engine used, you have to edit the template configuration variable.

   Configuration
       The template configuration variable tells Dancer which engine to use for rendering views.

       You change it either in your config.yml file:

           # setting TT as the template engine
           template: "template_toolkit"

       Or in the application code:

           # setting TT as the template engine
           set template => 'template_toolkit';

Version

       version 1.3521

See Also