Kelp::Module::Template::Xslate - Template rendering via Text::Xslate for Kelp
First ...
# conf/config.pl { modules => ['Template::Xslate'], modules_init => { 'Template::Xslate' => { ... } } }
Then ...
# lib/MyApp.pm sub some_route { my $self = shift; return $self->template( \'Inline <: $name :>', { name => 'template' } ); } sub another_route { my $self = shift; return $self->template( 'filename', { bar => 'foo' } ); }
Kelp, Text::Xslate
To install Kelp::Module::Template::Xslate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Kelp::Module::Template::Xslate
CPAN shell
perl -MCPAN -e shell install Kelp::Module::Template::Xslate
For more information on module installation, please visit the detailed CPAN module installation guide.