NAME

App::Embra::Plugin::TemplateToolkit - use Template::Toolkit to turn file content into HTML

VERSION

version 0.001

DESCRIPTION

This plugin will process site files through Template Toolkit. For each file with a .html extension, it will look for a template in the include_path with a matching name and use it to process the contents of the file into an assembled HTML document.

Templates will be passed the file's content and body as variables, as well as each of the file's notes.

ATTRIBUTES

include_path

Where to find templates. Defaults to templates in the current directory. All files within the path will be pruned.

default_template

Template to use if a file doesn't have a matching template. Defaults to default.tt.

extension

The extension of template files. Defaults to .tt.

assembler

The object used to assemble files. Defaults to an instance of Template Toolkit.

AUTHOR

Daniel Holz <dgholz@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Daniel Holz.

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