From 5952a8d759aa6f3f88b87e153df0e7e8b993b9e0 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sun, 22 Dec 2019 11:30:13 +0100 Subject: [PATCH] add function normalize_family to templates --- src/rougail/template.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/rougail/template.py b/src/rougail/template.py index 68044f01..de44625c 100644 --- a/src/rougail/template.py +++ b/src/rougail/template.py @@ -38,6 +38,7 @@ from tiramisu.error import PropertiesOptionError from .config import patch_dir from .error import FileNotFound, TemplateError, TemplateDisabled from .i18n import _ +from .utils import normalize_family log = logging.getLogger(__name__) @@ -120,8 +121,9 @@ class CheetahTemplate(ChtTemplate): """ ChtTemplate.__init__(self, file=filename, searchList=[context, eosfunc, {'is_defined' : IsDefined(context), - 'creole_client' : CreoleClient(config), - 'current_container':CreoleGet(current_container), + # 'creole_client' : CreoleClient(config), + # 'current_container':CreoleGet(current_container), + 'normalize_family': normalize_family, 'rougail_filename': destfilename }])