NAME
MsOffice::Word::Template::Engine -- abstract class for template engines
DESCRIPTION
This abstract class encapsulates functionalities common to all templating engines. Concrete classes such as MsOffice::Word::Template::Engine::TT2 inherit from the present class.
Templating engines encapsulate internal implementation algorithms; they are not meant to be called from external clients. Methods documented below are just to explain the internal architecture.
METHODS
_compile_templates
$self->_compile_templates($word_template);
Calls the subclass's concrete method compile_template
on each document part.
_template_fragment_for_run
Translates a given text run into a fragment suitable to be processed by the template compiler.
xml_regexes
Compiles the regexes to be tried on each text run.