Replace all instances of component_block with component. Remove duplicate tests.

This commit is contained in:
Emil Stenström 2024-02-11 23:14:43 +01:00 committed by Emil Stenström
parent 48fe8171b4
commit edf3885632
14 changed files with 246 additions and 310 deletions

View file

@ -5,12 +5,12 @@
{% component_css_dependencies %}
</head>
<body>
{% component_block "calendar" date=date %}{% endcomponent_block %}
{% component_block "greeting" name='Joe' %}
{% component "calendar" date=date %}{% endcomponent %}
{% component "greeting" name='Joe' %}
{% fill "message" %}
Howdy?
{% endfill %}
{% endcomponent_block %}
{% endcomponent %}
{% component_js_dependencies %}
</body>
</html>

View file

@ -3,17 +3,17 @@
<div>Your to-dos:</div>
<ul>
<li>
{% component_block "todo" %}
{% component "todo" %}
{% fill "todo_text" %}
Stop forgetting the milk!
{% endfill %}
{% endcomponent_block %}
{% endcomponent %}
</li>
<li>
{% component_block "todo" %}
{% component "todo" %}
{# As of v0.28, 'fill' tag optional for 1-slot filling if component template specifies a 'default' slot #}
Wear all-white clothes to laser tag tournament.
{% endcomponent_block %}
{% endcomponent %}
</li>
</ul>
</div>