Commit 07e281a9 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 8d9fdd05
{# XXX ORS -> provide defaults for: cell_list #}
{# XXX uncomment {%- import 'lte.jinja2' as lte %} #}
{%- import 'cfg/lte.jinja2' as lte %}
{%- import 'lte.jinja2' as lte %}
{# return value is json-encoded to workaround jinja2 macro-ret limitation. #}
{# XXX macro return json -> start from j #}
......
......@@ -176,6 +176,7 @@ compiled_source_cache = {}
class Recipe():
def _init(self, name, options):
args = None, name, options
self.once = options.get('once')
self.encoding = options.get('encoding', 'utf-8')
self._update = True
......@@ -245,6 +246,7 @@ r._init("recipe", {
'url': 'config/{}.jinja2.cfg'.format(config),
'output': 'config/{}.cfg'.format(config),
'context': json.loads(json_params),
'import-list': 'rawfile lte.jinja2 config/lte.jinja2',
})
with open('config/{}.cfg'.format(config), 'w+') as f:
f.write(r._render().decode())
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment