django-components/django_components
lemontheme a8dfcce24e Introduce {% fill %} replacing 'fill' func of 'slot' tag
Partial implementation fill-tags plus update tests

Implement {% fill %} tags. Next: update tests.

Bring back support for {%slot%} blocks for bckwrd-compat and implement ambig. resolution policy

Update tests to use fill blocks. Add extra checks that raise errors

Add new tests for fill-slot nesting

Update README. Editing still required

remove unused var ctxt after flake8 complaint

fix flake8 warning about slotless f-string

[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Add new slot aliases in fill context. Clean up rendering logic in Component. Update docs.

fix flake8, isort, black errors

Refactor duplicated name validation

Add if_filled tag + elif_filled...else_filled...endif_filled for cond. slots

Fix mistake in do_if_filled() docstring

Upload templates for tests! D'oh

Incorporate PR feedback

Drop Literal type hint; Use isort off-on instead of skip in tests

Treat all fill,slot,if_filled,component names as variables

Reset sampleproject components

Add test for variable filled name

Update examples in docs
2023-03-14 23:40:21 +01:00
..
templatetags Introduce {% fill %} replacing 'fill' func of 'slot' tag 2023-03-14 23:40:21 +01:00
__init__.py Introduce {% fill %} replacing 'fill' func of 'slot' tag 2023-03-14 23:40:21 +01:00
app_settings.py Introduce {% fill %} replacing 'fill' func of 'slot' tag 2023-03-14 23:40:21 +01:00
apps.py Autodiscover components in components.py inside an app (#24) 2021-02-05 21:31:09 +01:00
component.py Introduce {% fill %} replacing 'fill' func of 'slot' tag 2023-03-14 23:40:21 +01:00
component_registry.py [pre-commit.ci] auto fixes from pre-commit.com hooks 2021-09-10 11:12:26 +00:00
middleware.py Issue loading media when RENDER_DEPENDENCIES True 2022-07-31 20:18:41 -05:00
template_loader.py Handle case with SETTINGS_MODULE not set. 2022-07-18 09:23:04 +02:00