MVC::Neaf::View::TT - Template toolkit-based view module for Neaf.
# Somewhere in your app return { -view => 'TT', -template => 'foo.tt', title => 'Page title', .... };
%options may include:
preserve_dash - don't strip dashed options. Useful for debugging.
Also any UPPERCASE OPTIONS will be forwarded to the backend (i.e. Template object) w/o changes.
NOTE No input checks are made whatsoever, but this MAY change in the future.
Returns a pair of values: ($content, $content_type).
Content-type defaults to text/html.
The template is determined from (1) -template in data (2) template in new(). If neither is present, empty string and "text/plain" are returned.
Template - the template toolkit used as backend.
To install MVC::Neaf, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MVC::Neaf
CPAN shell
perl -MCPAN -e shell install MVC::Neaf
For more information on module installation, please visit the detailed CPAN module installation guide.