NAME
MojoX::Renderer::HTC - HTML::Template::Compiled renderer for Mojo
VERSION
version 0.03
SYNOPSIS
use MojoX::Renderer::HTC;
sub startup {
my $self = shift;
$self->types->type(tmpl => 'text/html');
my $render = MojoX::Renderer::HTC->build(
%html_template_compiled_params,
);
$self->renderer->add_handler( tmpl => $render );
}
In the app:
$self->render(
msg => 'Welcome to the Mojolicious real-time web framework!',
handler => 'htc',
format => 'html', # optional
template => "example/schema", # optional
);
METHODS
build
Build a new renderer that can be used to render output in the Mojolicious application.
my $render = MojoX::Renderer::HTC->build(
case_sensitive => 1,
default_escape => 'HTML',
use_query => 1,
);
$self->renderer->add_handler( tmpl => $render );
For all parameters that HTML::Template::Compiled accepts, see OPTIONS.
CONTRIBUTORS
* Tina Müller (tinita) - major rewrite for version 0.03
AUTHOR
Renee Baecker <reneeb@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2015 by Renee Baecker.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)