mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-11 11:59:15 +00:00
Merge pull request #252 from davla/bug250
Allowing templating on config variables
This commit is contained in:
@@ -142,7 +142,7 @@ class CfgYaml:
|
|||||||
|
|
||||||
# parse the "variables" block
|
# parse the "variables" block
|
||||||
var = self._parse_blk_variables(self._yaml_dict)
|
var = self._parse_blk_variables(self._yaml_dict)
|
||||||
self._add_variables(var, template=False)
|
self._add_variables(var, template=True)
|
||||||
|
|
||||||
# parse the "dynvariables" block
|
# parse the "dynvariables" block
|
||||||
dvariables = self._parse_blk_dynvariables(self._yaml_dict)
|
dvariables = self._parse_blk_dynvariables(self._yaml_dict)
|
||||||
@@ -1100,6 +1100,8 @@ class CfgYaml:
|
|||||||
val = t.generate_string(val)
|
val = t.generate_string(val)
|
||||||
variables[k] = val
|
variables[k] = val
|
||||||
t.update_variables(variables)
|
t.update_variables(variables)
|
||||||
|
if variables is self.variables:
|
||||||
|
self._redefine_templater()
|
||||||
|
|
||||||
def _get_profile_included_vars(self):
|
def _get_profile_included_vars(self):
|
||||||
"""resolve profile included variables/dynvariables"""
|
"""resolve profile included variables/dynvariables"""
|
||||||
|
|||||||
Reference in New Issue
Block a user