Remove comments

This commit is contained in:
Feodor Fitsner 2025-02-18 15:29:45 -08:00
parent 2a9684494a
commit d227d48247
1 changed files with 17 additions and 21 deletions

View File

@ -68,38 +68,34 @@
</array> </array>
<!-- 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 is boolean -%}
<true /> <{{ "true" if value else "false" }}/>
<!-- {% elif value == False %} --> {% elif value is mapping -%}
<false />
<!-- {% 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 is boolean -%}
<true /> <{{ "true" if item else "false" }}/>
<!-- {% elif item == False %} --> {% elif item is mapping -%}
<false />
<!-- {% 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>