NAME

Template::Lace::Factory - Create templates

SYNOPSIS

TBD

DESCRIPTION

Produces Templates from a model.

INITIALIZATION ARGUMENTS

This class defines the following initialization arguments

model_class

The class that is providing the view model and does the interface defined by Template::Lace::ModelRole

model_constructor

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_constructor => sub {
  my ($model_class, %args) = @_:
  return $model_class->new( version=>1, %args); 
},

renderer_class

The name of the Render class. useful if you need to subclass to provide special feeatures.

init_args

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.

component_mappings

A Hashref of component information. For now see the core documentation at Template::Lace for details about components.

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.