django-components 0.26__tar.gz → 0.26.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {django_components-0.26 → django_components-0.26.2}/PKG-INFO +13 -4
- {django_components-0.26 → django_components-0.26.2}/README.md +12 -3
- {django_components-0.26 → django_components-0.26.2}/django_components/templatetags/component_tags.py +1 -1
- {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/PKG-INFO +13 -4
- {django_components-0.26 → django_components-0.26.2}/setup.py +1 -1
- {django_components-0.26 → django_components-0.26.2}/LICENSE +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/__init__.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/app_settings.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/apps.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/component.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/component_registry.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/middleware.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/template_loader.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components/templatetags/__init__.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/SOURCES.txt +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/dependency_links.txt +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/requires.txt +0 -0
- {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/top_level.txt +0 -0
- {django_components-0.26 → django_components-0.26.2}/pyproject.toml +0 -0
- {django_components-0.26 → django_components-0.26.2}/setup.cfg +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/test_component.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/test_context.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/test_dependency_rendering.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/test_registry.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/test_templatetags.py +0 -0
- {django_components-0.26 → django_components-0.26.2}/tests/testutils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django_components
|
|
3
|
-
Version: 0.26
|
|
3
|
+
Version: 0.26.2
|
|
4
4
|
Summary: A way to create simple reusable template components in Django.
|
|
5
5
|
Home-page: https://github.com/EmilStenstrom/django-components/
|
|
6
6
|
Author: Emil Stenström
|
|
@@ -43,6 +43,8 @@ Read on to learn about the details!
|
|
|
43
43
|
|
|
44
44
|
# Release notes
|
|
45
45
|
|
|
46
|
+
*Version 0.26* changes the syntax for `{% slot %}` tags. From now on, we separate defining a slot (`{% slot %}`) from filling a slot with content (`{% fill %}`). This means you will likely need to change a lot of slot tags to fill. We understand this is annoying, but it's the only way we can get support for nested slots that fill in other slots, which is a very nice feature to have access to. Hoping that this will feel worth it!
|
|
47
|
+
|
|
46
48
|
*Version 0.22* starts autoimporting all files inside components subdirectores, to simplify setup. An existing project might start to get AlreadyRegistered-errors because of this. To solve this, either remove your custom loading of components, or set "autodiscover": False in settings.COMPONENTS.
|
|
47
49
|
|
|
48
50
|
*Version 0.17* renames `Component.context` and `Component.template` to `get_context_data` and `get_template_name`. The old methods still work, but emit a deprecation warning. This change was done to sync naming with Django's class based views, and make using django-components more familiar to Django users. `Component.context` and `Component.template` will be removed when version 1.0 is released.
|
|
@@ -172,6 +174,13 @@ Read on to find out how to build your first component!
|
|
|
172
174
|
<sub><b><AIT ALI EL HOSAYN></b></sub>
|
|
173
175
|
</a>
|
|
174
176
|
</td>
|
|
177
|
+
<td align="center">
|
|
178
|
+
<a href="https://github.com/lemontheme">
|
|
179
|
+
<img src="https://avatars.githubusercontent.com/u/15968876?v=4" width="100;" alt="lemontheme"/>
|
|
180
|
+
<br />
|
|
181
|
+
<sub><b>Adriaan</b></sub>
|
|
182
|
+
</a>
|
|
183
|
+
</td>
|
|
175
184
|
<td align="center">
|
|
176
185
|
<a href="https://github.com/danjac">
|
|
177
186
|
<img src="https://avatars.githubusercontent.com/u/249779?v=4" width="100;" alt="danjac"/>
|
|
@@ -199,15 +208,15 @@ Read on to find out how to build your first component!
|
|
|
199
208
|
<br />
|
|
200
209
|
<sub><b>Humberto Alves</b></sub>
|
|
201
210
|
</a>
|
|
202
|
-
</td>
|
|
211
|
+
</td></tr>
|
|
212
|
+
<tr>
|
|
203
213
|
<td align="center">
|
|
204
214
|
<a href="https://github.com/mands">
|
|
205
215
|
<img src="https://avatars.githubusercontent.com/u/1010043?v=4" width="100;" alt="mands"/>
|
|
206
216
|
<br />
|
|
207
217
|
<sub><b>Mandeep Gill</b></sub>
|
|
208
218
|
</a>
|
|
209
|
-
</td
|
|
210
|
-
<tr>
|
|
219
|
+
</td>
|
|
211
220
|
<td align="center">
|
|
212
221
|
<a href="https://github.com/telenieko">
|
|
213
222
|
<img src="https://avatars.githubusercontent.com/u/10505?v=4" width="100;" alt="telenieko"/>
|
|
@@ -20,6 +20,8 @@ Read on to learn about the details!
|
|
|
20
20
|
|
|
21
21
|
# Release notes
|
|
22
22
|
|
|
23
|
+
*Version 0.26* changes the syntax for `{% slot %}` tags. From now on, we separate defining a slot (`{% slot %}`) from filling a slot with content (`{% fill %}`). This means you will likely need to change a lot of slot tags to fill. We understand this is annoying, but it's the only way we can get support for nested slots that fill in other slots, which is a very nice feature to have access to. Hoping that this will feel worth it!
|
|
24
|
+
|
|
23
25
|
*Version 0.22* starts autoimporting all files inside components subdirectores, to simplify setup. An existing project might start to get AlreadyRegistered-errors because of this. To solve this, either remove your custom loading of components, or set "autodiscover": False in settings.COMPONENTS.
|
|
24
26
|
|
|
25
27
|
*Version 0.17* renames `Component.context` and `Component.template` to `get_context_data` and `get_template_name`. The old methods still work, but emit a deprecation warning. This change was done to sync naming with Django's class based views, and make using django-components more familiar to Django users. `Component.context` and `Component.template` will be removed when version 1.0 is released.
|
|
@@ -149,6 +151,13 @@ Read on to find out how to build your first component!
|
|
|
149
151
|
<sub><b><AIT ALI EL HOSAYN></b></sub>
|
|
150
152
|
</a>
|
|
151
153
|
</td>
|
|
154
|
+
<td align="center">
|
|
155
|
+
<a href="https://github.com/lemontheme">
|
|
156
|
+
<img src="https://avatars.githubusercontent.com/u/15968876?v=4" width="100;" alt="lemontheme"/>
|
|
157
|
+
<br />
|
|
158
|
+
<sub><b>Adriaan</b></sub>
|
|
159
|
+
</a>
|
|
160
|
+
</td>
|
|
152
161
|
<td align="center">
|
|
153
162
|
<a href="https://github.com/danjac">
|
|
154
163
|
<img src="https://avatars.githubusercontent.com/u/249779?v=4" width="100;" alt="danjac"/>
|
|
@@ -176,15 +185,15 @@ Read on to find out how to build your first component!
|
|
|
176
185
|
<br />
|
|
177
186
|
<sub><b>Humberto Alves</b></sub>
|
|
178
187
|
</a>
|
|
179
|
-
</td>
|
|
188
|
+
</td></tr>
|
|
189
|
+
<tr>
|
|
180
190
|
<td align="center">
|
|
181
191
|
<a href="https://github.com/mands">
|
|
182
192
|
<img src="https://avatars.githubusercontent.com/u/1010043?v=4" width="100;" alt="mands"/>
|
|
183
193
|
<br />
|
|
184
194
|
<sub><b>Mandeep Gill</b></sub>
|
|
185
195
|
</a>
|
|
186
|
-
</td
|
|
187
|
-
<tr>
|
|
196
|
+
</td>
|
|
188
197
|
<td align="center">
|
|
189
198
|
<a href="https://github.com/telenieko">
|
|
190
199
|
<img src="https://avatars.githubusercontent.com/u/10505?v=4" width="100;" alt="telenieko"/>
|
{django_components-0.26 → django_components-0.26.2}/django_components/templatetags/component_tags.py
RENAMED
|
@@ -315,7 +315,7 @@ class ComponentNode(Node):
|
|
|
315
315
|
self.name_var = name_var
|
|
316
316
|
self.context_args = context_args or []
|
|
317
317
|
self.context_kwargs = context_kwargs or {}
|
|
318
|
-
self.fill_nodes:
|
|
318
|
+
self.fill_nodes: NodeList[FillNode] = NodeList()
|
|
319
319
|
self.isolated_context = isolated_context
|
|
320
320
|
|
|
321
321
|
def __repr__(self):
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: django-components
|
|
3
|
-
Version: 0.26
|
|
3
|
+
Version: 0.26.2
|
|
4
4
|
Summary: A way to create simple reusable template components in Django.
|
|
5
5
|
Home-page: https://github.com/EmilStenstrom/django-components/
|
|
6
6
|
Author: Emil Stenström
|
|
@@ -43,6 +43,8 @@ Read on to learn about the details!
|
|
|
43
43
|
|
|
44
44
|
# Release notes
|
|
45
45
|
|
|
46
|
+
*Version 0.26* changes the syntax for `{% slot %}` tags. From now on, we separate defining a slot (`{% slot %}`) from filling a slot with content (`{% fill %}`). This means you will likely need to change a lot of slot tags to fill. We understand this is annoying, but it's the only way we can get support for nested slots that fill in other slots, which is a very nice feature to have access to. Hoping that this will feel worth it!
|
|
47
|
+
|
|
46
48
|
*Version 0.22* starts autoimporting all files inside components subdirectores, to simplify setup. An existing project might start to get AlreadyRegistered-errors because of this. To solve this, either remove your custom loading of components, or set "autodiscover": False in settings.COMPONENTS.
|
|
47
49
|
|
|
48
50
|
*Version 0.17* renames `Component.context` and `Component.template` to `get_context_data` and `get_template_name`. The old methods still work, but emit a deprecation warning. This change was done to sync naming with Django's class based views, and make using django-components more familiar to Django users. `Component.context` and `Component.template` will be removed when version 1.0 is released.
|
|
@@ -172,6 +174,13 @@ Read on to find out how to build your first component!
|
|
|
172
174
|
<sub><b><AIT ALI EL HOSAYN></b></sub>
|
|
173
175
|
</a>
|
|
174
176
|
</td>
|
|
177
|
+
<td align="center">
|
|
178
|
+
<a href="https://github.com/lemontheme">
|
|
179
|
+
<img src="https://avatars.githubusercontent.com/u/15968876?v=4" width="100;" alt="lemontheme"/>
|
|
180
|
+
<br />
|
|
181
|
+
<sub><b>Adriaan</b></sub>
|
|
182
|
+
</a>
|
|
183
|
+
</td>
|
|
175
184
|
<td align="center">
|
|
176
185
|
<a href="https://github.com/danjac">
|
|
177
186
|
<img src="https://avatars.githubusercontent.com/u/249779?v=4" width="100;" alt="danjac"/>
|
|
@@ -199,15 +208,15 @@ Read on to find out how to build your first component!
|
|
|
199
208
|
<br />
|
|
200
209
|
<sub><b>Humberto Alves</b></sub>
|
|
201
210
|
</a>
|
|
202
|
-
</td>
|
|
211
|
+
</td></tr>
|
|
212
|
+
<tr>
|
|
203
213
|
<td align="center">
|
|
204
214
|
<a href="https://github.com/mands">
|
|
205
215
|
<img src="https://avatars.githubusercontent.com/u/1010043?v=4" width="100;" alt="mands"/>
|
|
206
216
|
<br />
|
|
207
217
|
<sub><b>Mandeep Gill</b></sub>
|
|
208
218
|
</a>
|
|
209
|
-
</td
|
|
210
|
-
<tr>
|
|
219
|
+
</td>
|
|
211
220
|
<td align="center">
|
|
212
221
|
<a href="https://github.com/telenieko">
|
|
213
222
|
<img src="https://avatars.githubusercontent.com/u/10505?v=4" width="100;" alt="telenieko"/>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{django_components-0.26 → django_components-0.26.2}/django_components/templatetags/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{django_components-0.26 → django_components-0.26.2}/django_components.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
{django_components-0.26 → django_components-0.26.2}/django_components.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|