Skip to content

mrmaloof/Dancer2-Template-TemplateFlute

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NAME

Dancer2::Template::TemplateFlute - Template flute engine for Dancer2

VERSION

version 0.005

SYNOPSIS

To use this engine, you may configure Dancer2 via config.yaml:

template:   "template_flute"

Or you may also change the rendering engine on a per-route basis by setting it manually with set:

# code code code
set template => 'template_flute';

DESCRIPTION

This template engine allows you to use Template::Flute in Dancer2.

METHODS

  • render($template, \%tokens)

    Renders the template. The first arg is a filename for the template file or a reference to a string that contains the template. The second arg is a hashref for the tokens that you wish to pass to Template::Toolkit for rendering.

  • default_tmpl_ext

    The extension for the template files. html.

SEE ALSO

Dancer2, Dancer2::Core::Role::Template, Template::Flute.

AUTHOR

William Carr [email protected]

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by William Carr.

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

About

Use Template::Flute template engine in Dancer2 perl web framework.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages