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