NAME

Template::Lace::Renderer

SYNOPSIS

    TBD

DESCRIPTION

Renderer for the model. Not really end user aimed. See Template::Lace for main overview.

METHODS

This class defines the following public methods

call

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).

call_at

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);

SEE ALSO

Template::Lace.

AUTHOR

Please See Template::Lace for authorship and contributor information.

COPYRIGHT & LICENSE

Please see Template::Lace for copyright and license information.