First commit
This commit is contained in:
commit
3e88db9045
5 changed files with 191 additions and 0 deletions
20
templates/mako.j2
Normal file
20
templates/mako.j2
Normal file
|
@ -0,0 +1,20 @@
|
|||
{% if mako_options is defined %}
|
||||
{% for option, value in mako_options.items() %}
|
||||
{{ option }}="{{ value }}"
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if mako_rules %}
|
||||
|
||||
{% for rule in mako_rules %}
|
||||
[ {%- for criteria in rule['criterias'] %}
|
||||
{{ criteria.field ~ '="' ~ criteria.value ~ '"' }}
|
||||
{%- if not loop.last %}{{ ' ' }}{% endif %}
|
||||
{%- endfor %}]
|
||||
{% for option, value in rule['options'].items() %}
|
||||
{{ option }}={{ value }}
|
||||
{% endfor %}
|
||||
{% if not loop.last %}
|
||||
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
Loading…
Add table
Add a link
Reference in a new issue