Loading src/Generators/component-twig--template.twig +3 −0 Original line number Diff line number Diff line <div {{ '{{ clAttributes }}' }}> {{ '{# ' }}Keep the outer div whenever possible it is a nice way to ensure the presence of clAttributes {{ '#}' }} {{ '{% ' }}block example_block {{ '%}' }} The contents of the example block {{ '{% ' }}endblock {{ '%}' }} </div> src/Generators/metadata-json--template.twig +19 −15 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ {% if component_props is not empty %} "schemas": { "props": { "type": "object", "properties": { {% for prop in component_props %} "{{ prop.name }}": { "title": "{{ prop.title }}", Loading @@ -40,9 +42,11 @@ ], {% endif %} "type": "{{ prop.type }}" } }{% if not loop.last %},{% endif %} {% endfor %} } } }, {% endif %} "status": "{{ component_status }}" Loading Loading
src/Generators/component-twig--template.twig +3 −0 Original line number Diff line number Diff line <div {{ '{{ clAttributes }}' }}> {{ '{# ' }}Keep the outer div whenever possible it is a nice way to ensure the presence of clAttributes {{ '#}' }} {{ '{% ' }}block example_block {{ '%}' }} The contents of the example block {{ '{% ' }}endblock {{ '%}' }} </div>
src/Generators/metadata-json--template.twig +19 −15 Original line number Diff line number Diff line Loading @@ -25,6 +25,8 @@ {% if component_props is not empty %} "schemas": { "props": { "type": "object", "properties": { {% for prop in component_props %} "{{ prop.name }}": { "title": "{{ prop.title }}", Loading @@ -40,9 +42,11 @@ ], {% endif %} "type": "{{ prop.type }}" } }{% if not loop.last %},{% endif %} {% endfor %} } } }, {% endif %} "status": "{{ component_status }}" Loading