libmojolicious-plugin-templatetoolkit-perl

Template Toolkit renderer plugin for Mojolicious

Description

Mojolicious::Plugin::TemplateToolkit is a renderer for tt2 or Template Toolkit templates. See Template and Template::Manual for details on the Template Toolkit format, and Mojolicious::Guides::Rendering for general information on rendering in Mojolicious.

Along with template files, inline and data section templates can be rendered in the standard Mojolicious fashion. Template files and data sections will be retrieved using Mojolicious::Renderer via Template::Provider::Mojo for both direct rendering and directives such as INCLUDE. This means that instead of specifying INCLUDE_PATH|Template::Manual::Config/"INCLUDE_PATH", you should set Mojolicious::Renderer/"paths" to the appropriate paths.

 $app->renderer->paths(['/path/to/templates']);

 push @{$app->renderer->paths}, '/path/to/more/templates';

Upload more screenshots

Please help extend the collection of screenshots. Just make a screenshot and upload it here. You don't need to register or anything.

Upload a screenshot

Hint: upload an image here from your clipboard with Ctrl-V


Homepage

https://metacpan.org/release/Mojolicious-Plugin-TemplateToolkit


Install this software package

If the package is available for the distribution you are currently using on your computer then install the software by clicking on…

Install libmojolicious-plugin-templatetoolkit-perl