diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-11 12:55:59 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-04-11 12:55:59 +0100 |
commit | ef2e8f4d721a6486db90c0f395f595ca897614b8 (patch) | |
tree | 63963020cd60b82b007691a0885d3739c8fed998 /data/templates/pppoe | |
parent | 7b1a76063b15b238702cc86a71c5f0604c994920 (diff) | |
download | vyos-1x-ef2e8f4d721a6486db90c0f395f595ca897614b8.tar.gz vyos-1x-ef2e8f4d721a6486db90c0f395f595ca897614b8.zip |
template: T2230: helper to generate templates
Currently the pattern is to import jinja2 and re-generate
the template in every file. Dimitriy reported a reduction
in performance (1s) when commiting.
This code provide an helper function which caches the
Environment and template renderer, and can generate
template from one line (instead of the few currently)
Diffstat (limited to 'data/templates/pppoe')
0 files changed, 0 insertions, 0 deletions