Processors Module

This module stores all the callback functions provided by TIE and used to process matching tags in a template.

Note

Only one function, the default sub processor, is defined for now.

tie.processors.sub(match, **context)

Default tag processor. Returns the appropriate value from **context for a matched tag.

This processor performs a simpe substitution on the processed tag. It will check for a value matching the current tag within the context dictionnary and return it, or an empty string if no match was found.

Warning

The “no match found” behaviour is still undefined. For now it simply raises a warning and return an empty value, so that the tag will simply be suppressed.

Custom processors:

Todo

Renderer “protocol” summary

Project Versions

Table Of Contents

Previous topic

Template module

Next topic

Renderers Module

This Page