Sha256: c0dd2a3f1eb5a1201fb546d393bfff3047e5ae1c5e435537da4b40e195014b92
Contents?: true
Size: 1.01 KB
Versions: 3
Compression:
Stored size: 1.01 KB
Contents
{% if tables.count > 0 %} {% macro parametersBlock types %}{% filter removeNewlines:"leading" %} {% for type in types %} "{{type}}" {{ ", " if not forloop.last }} {% endfor %} {% endfilter %}{% endmacro %} { {% macro recursiveBlock table item %} {% for string in item.strings %} {% if string.types %} "{{string.key}}": [{% call parametersBlock string.types %}], {% else %} "{{string.key}}": [], {% endif %} {% endfor %} {% for child in item.children %} {% call recursiveBlock table child %} {% endfor %} {% endmacro %} {% set enumName %}{{param.enumName|default:"L10n"}}{% endset %} "{{enumName}}": { {% if tables.count > 1 or param.forceFileNameEnum %} {% for table in tables %} "{{table.name}}": { {% filter indent:2 %}{% call recursiveBlock table.name table.levels %}{% endfilter %} } {% endfor %} {% else %} {% call recursiveBlock tables.first.name tables.first.levels %} {% endif %} }, } {% else %} // No string found {% endif %}
Version data entries
3 entries across 3 versions & 1 rubygems