mirror of
https://github.com/django-components/django-components.git
synced 2025-08-04 14:28:18 +00:00
Replace all instances of component_block with component. Remove duplicate tests.
This commit is contained in:
parent
48fe8171b4
commit
edf3885632
14 changed files with 246 additions and 310 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue