templating - prepare integration into ui
This commit is contained in:
@@ -24,7 +24,7 @@ class Configurator :
|
||||
if self.__check_var(var, value) :
|
||||
self.__variables[var] = value
|
||||
else :
|
||||
print("Problem with " + var + "=" + value)
|
||||
print("Ignoring " + var + "=" + value)
|
||||
|
||||
def get_config(self) :
|
||||
config = {}
|
||||
|
||||
@@ -9,7 +9,7 @@ class Templator :
|
||||
self.__target_path = target_path
|
||||
if not self.__target_path.endswith("/") :
|
||||
self.__target_path += "/"
|
||||
self.__template_env = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath=self.__input_path))
|
||||
self.__template_env = jinja2.Environment(loader=jinja2.FileSystemLoader(searchpath=self.__input_path), trim_blocks=True, lstrip_blocks=True)
|
||||
|
||||
def render_global(self) :
|
||||
return self.__render("global")
|
||||
|
||||
Reference in New Issue
Block a user