lpod.template

lpod.template.process(element, stack, repeat_stack)
lpod.template.stl_odf(document=None, namespace=frozendict({}), element=None)

Apply the given namespace to the document (or element) where matching “${xxx}” are replaced by their value.

Clone of itools.stl for odf_document.

Arguments:

document – odf_document

namespace – dict

Return: modified “document” argument

lpod.template.substitute(data, stack, repeat_stack)

Interprets the given data as a substitution string with the “${expr}” format, where the expression within the brackets is an STL expression.

Returns the interpreted string.