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.

COPYRIGHT AND LICENSE

Copyright 2020-2024 by Laurent Dami.

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.