Another template fix

This commit is contained in:
Feodor Fitsner 2025-02-18 15:28:09 -08:00
parent 163362c2dd
commit 2a9684494a
1 changed files with 16 additions and 16 deletions

View File

@ -69,37 +69,37 @@
<!-- flet: end of deep linking {% endif %} -->
<!-- {% macro render_dict(d) -%} -->
<!-- {% for key, value in d.items() -%} -->
<!-- {% for key, value in d.items() %} -->
<key>{{ key }}</key>
<!-- {% if value is string -%} -->
<!-- {% if value is string %} -->
<string>{{ value }}</string>
<!-- {% elif value == True -%} -->
<!-- {% elif value == True %} -->
<true />
<!-- {% elif value == False -%} -->
<!-- {% elif value == False %} -->
<false />
<!-- {% elif value is mapping -%} -->
<!-- {% elif value is mapping %} -->
<dict>
{{ render_dict(value) }}
</dict>
<!-- {% elif value is sequence -%} {# Support for lists/arrays #} -->
<!-- {% elif value is sequence %} {# Support for lists/arrays #} -->
<array>
<!-- {% for item in value -%} -->
<!-- {% if item is string -%} -->
<!-- {% for item in value %} -->
<!-- {% if item is string %} -->
<string>{{ item }}</string>
<!-- {% elif item == True -%} -->
<!-- {% elif item == True %} -->
<true />
<!-- {% elif item == False -%} -->
<!-- {% elif item == False %} -->
<false />
<!-- {% elif item is mapping -%} -->
<!-- {% elif item is mapping %} -->
<dict>
{{ render_dict(item) }}
</dict>
<!-- {% endif -%} -->
<!-- {% endfor -%} -->
<!-- {% endif %} -->
<!-- {% endfor %} -->
</array>
<!-- {% endif -%} -->
<!-- {% endfor -%} -->
<!-- {% endmacro -%} -->
<!-- {% endif %} -->
<!-- {% endfor %} -->
<!-- {% endmacro %} -->
{{ render_dict(cookiecutter.options.info_plist) }}
</dict>
</plist>