Template::Lace::Renderer
TBD
Renderer for the model. Not really end user aimed. See Template::Lace for main overview.
This class defines the following public methods
Allows you to have the renderer 'call' a method into the model, with the current DOM. Takes either a coderef or a string (that must be the name of a method in the model. Example:
$renderer->call(sub { my ($model, $dom) = @_; $model->add_debug($dom); }, @args); $renderer->call('add_debug', @args);
Are both the same as
$renderer ->model ->add_debug($renderer->dom, @args);
You might find this is a useful shortcut (or not).
Basically similar to "call" except allows you to specify a CSS match to set the DOM.
$renderer->call_at('#debug','add_debug', @args);
Is basically a shortcut for:
my $dom = $renderer->dom->at('#debug); $renderer->model->add_debug($dom, @args);
Template::Lace.
Please See Template::Lace for authorship and contributor information.
Please see Template::Lace for copyright and license information.
To install Template::Lace, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Lace
CPAN shell
perl -MCPAN -e shell install Template::Lace
For more information on module installation, please visit the detailed CPAN module installation guide.