The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dancer::Template::Mustache - Wrapper for the Mustache template system

VERSION

version 0.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>

AUTHOR

Yanick Champoux <yanick@babyl.dyndns.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 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.