Added the carryover entry.
This commit is contained in:
parent
8fb48f7225
commit
4fbbe5d822
@ -23,8 +23,11 @@
|
|||||||
{%- if data is mapping -%}
|
{%- if data is mapping -%}
|
||||||
{%- for entry in data|dictsort -%}
|
{%- for entry in data|dictsort -%}
|
||||||
{%- if entry[0] in groupings -%}
|
{%- if entry[0] in groupings -%}
|
||||||
{{- config_entries(entry[1], indents + 2, carryover=entry[0]) -}}
|
{{- config_entries(entry[1], indents, carryover=entry[0]) -}}
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
|
{%- if carryover -%}
|
||||||
|
{{ carryover|indent(indents, True) }}
|
||||||
|
{%- endif -%}
|
||||||
{{ entry[0]|indent(indents, True) }}
|
{{ entry[0]|indent(indents, True) }}
|
||||||
{{- config_entries(entry[1], indents + 2) -}}
|
{{- config_entries(entry[1], indents + 2) -}}
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user