Template::Lace::Factory - Create templates
TBD
Produces Templates from a model.
This class defines the following initialization arguments
The class that is providing the view model and does the interface defined by Template::Lace::ModelRole
An optional codereference that allows you to specify how the model_class it turned into an instance. By default we call a method called new on the model_class. If you have special needs in creating the model you can define this coderef which gets the model_class and initialization arguments and should return an instance. For example:
model_class
new
model_constructor => sub { my ($model_class, %args) = @_: return $model_class->new( version=>1, %args); },
The name of the Render class. useful if you need to subclass to provide special feeatures.
A hashref of arguments that are fixed and are always passed to the model constructor at create time. Useful if your model class has some attributes which only need to be defined once.
A Hashref of component information. For now see the core documentation at Template::Lace for details about components.
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.