The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Template::Lace::ModelRole

SYNOPSIS

    package MyApp::User;

    use Moo;
    with 'Template::Lace::ModelRole';

DESCRIPTION

The minimal interface that a model class must provide.

METHODS

This interface exposes the following public methods. For detailed examples see Template::Lace.

template

Class method that should return a string which is the template for this model

prepare_dom

Class method that allows you to alter the DOM once at setup time.

process_dom

Instance method that recieves the DOM and allows you to transform it at request time.

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.