Template::Declare::Catalyst - Template::Declare subclass for Catalyst
use parent 'Template::Declare::Catalyst'; use Template::Declare::Tags; template hello => sub { my ($self, $vars) = @_; html { head { title { "Hello, $vars->{user}" } }; body { h1 { "Hello, $vars->{user}" } }; }; };
This subclass of Template::Declare adds extra functionality for use in Catalyst with Catalyst::View::TD.
context
my $c = Template::Declare::Catalyst->context;
Returns the Catalyst context object, if available.
c
my $c = Template::Declare::Catalyst->c;
An alias for context.
Catalyst::View::TD, Catalyst::Helper::View::TD, Catalyst::Helper::TDClass.
David E. Wheeler <david@justatheory.com>
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself.
To install Catalyst::View::TD, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::TD
CPAN shell
perl -MCPAN -e shell install Catalyst::View::TD
For more information on module installation, please visit the detailed CPAN module installation guide.