-
-
14 Jun 2018 02:31:45 UTC
- Distribution: Dancer-Template-Mustache
- Module version: v1.1.0
- Source (raw)
- Browse (raw)
- Changes
- Homepage
- How to Contribute
- Repository
- Issues (0)
- Testers (421 / 0 / 50)
- Kwalitee
Bus factor: 1- 91.84% Coverage
- License: perl_5
- Perl: v5.10.0
- Activity
24 month- Tools
- Download (20.64KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
and 1 contributors-
Yanick Champoux
NAME
Dancer::Template::Mustache - Wrapper for the Mustache template system
VERSION
version 1.1.0
SYNOPSIS
# in config.yml template: mustache # in the app get '/style/:style' => sub { template 'style' => { style => param('style') }; }; # in views/style.mustache That's a nice, manly {{style}} mustache you have there!
DESCRIPTION
This module is a Dancer wrapper for Template::Mustache.
For now, the extension of the mustache templates must be
.mustache
.Partials are supported, as are layouts. For layouts, the content of the inner template is sent via the usual content template variable. So a typical mustached layout would look like:
<body> {{{ content }}} </body>
CONFIGURATION
engines: Mustache: cache_templates: 1
Bu default, the templates are only compiled once when first accessed. The caching can be disabling by setting
cache_templates
to0
.SEE ALSO
The Mustache templating system: http://mustache.github.com/
Dancer::Template::Handlebars - Dancer support for Handlebars, a templating system that is a superset of Mustache.
AUTHOR
Yanick Champoux <yanick@babyl.dyndns.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2018, 2017, 2014, 2012 by Yanick Champoux.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Module Install Instructions
To install Dancer::Template::Mustache, copy and paste the appropriate command in to your terminal.
cpanm Dancer::Template::Mustache
perl -MCPAN -e shell install Dancer::Template::Mustache
For more information on module installation, please visit the detailed CPAN module installation guide.