MsOffice::Word::Template::Engine(3pm)

MsOffice::Word::Template::Engine3pm

Overview

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.

From libmsoffice-word-template-perl 2.05-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.