mirror of
https://github.com/django-components/django-components.git
synced 2025-07-24 16:53:47 +00:00
Remove component tag in favour of component_block.
This commit is contained in:
parent
f3350ced11
commit
ef6a082238
12 changed files with 101 additions and 108 deletions
|
@ -92,7 +92,7 @@ class RenderBenchmarks(SimpleTestCase):
|
|||
def test_render_time_for_small_component(self):
|
||||
template = Template(
|
||||
"{% load component_tags %}{% component_block 'test_component' %}"
|
||||
"{% slot \"header\" %}{% component 'inner_component' variable='foo' %}{% endslot %}"
|
||||
"{% slot \"header\" %}{% component_block 'inner_component' variable='foo' %}{% endslot %}{% endcomponent_block %}"
|
||||
"{% endcomponent_block %}",
|
||||
name="root",
|
||||
)
|
||||
|
@ -105,7 +105,7 @@ class RenderBenchmarks(SimpleTestCase):
|
|||
template = Template(
|
||||
"{% load component_tags %}{% component_dependencies %}"
|
||||
"{% component_block 'test_component' %}{% slot \"header\" %}"
|
||||
"{% component 'inner_component' variable='foo' %}{% endslot %}{% endcomponent_block %}",
|
||||
"{% component_block 'inner_component' variable='foo' %}{% endslot %}{% endcomponent_block %}{% endcomponent_block %}",
|
||||
name="root",
|
||||
)
|
||||
# Sanity tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue