logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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.

Name

       MsOffice::Word::Template::Engine -- abstract class for template engines

See Also