Any-Template
view release on metacpan or search on metacpan
lib/Any/Template/Backend.pm view on Meta::CPAN
You MUST supply a constructor. There is no default contructor to inherit.
The constructor will need to marshal the options and create the backend template object from them.
Example implementations can be found in backend classes included with the distribution.
=item $templating_engine = $o->native_object()
Returns the underlying native template object. You SHOULD supply this method.
Although accessing the underlying object defeats the point of Any::Template,
a valid use is in refactoring code, where dependencies on a particular engine's API
can be eradicated in iterations.
=item $data = $o->preprocess($data)
You CAN supply a method to preprocess the data structure before it's handed off to one of the process methods listed below.
Typically you might use this to remove some values from the data structure (e.g. globrefs) that a template backend
might not be able to handle.
The default implementation returns $data unmodified.
=item $o->process_to_string($data, $scalar_ref)
( run in 1.293 second using v1.01-cache-2.11-cpan-96521ef73a4 )