template.py: define a `_Template` class instead of two functions
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Aug 2020 15:11:16 +0000 (11:11 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 27 Aug 2020 15:33:20 +0000 (11:33 -0400)
commite902a26f9e9c44002a1dc343f7cd82bce5bf7639
tree08f1a96415e33f222d8e6182ec524582612e1beb
parentde49021eecdfe156dc8b575447bc512982d8bbc7
template.py: define a `_Template` class instead of two functions

This patch changes `template.py` so as to offer the `_Template` class
instead of the _create_template() and _render_template() functions.

This makes it possible to move the `is_file_template` parameter from
_render_template() to the template's constructor, as this really is a
template-specific option, not a rendering-specific option.

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
barectf/template.py
barectf/tsdl182gen.py
This page took 0.02232 seconds and 4 git commands to generate.