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.
Files changed (26) hide show
  1. {django_components-0.26 → django_components-0.26.2}/PKG-INFO +13 -4
  2. {django_components-0.26 → django_components-0.26.2}/README.md +12 -3
  3. {django_components-0.26 → django_components-0.26.2}/django_components/templatetags/component_tags.py +1 -1
  4. {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/PKG-INFO +13 -4
  5. {django_components-0.26 → django_components-0.26.2}/setup.py +1 -1
  6. {django_components-0.26 → django_components-0.26.2}/LICENSE +0 -0
  7. {django_components-0.26 → django_components-0.26.2}/django_components/__init__.py +0 -0
  8. {django_components-0.26 → django_components-0.26.2}/django_components/app_settings.py +0 -0
  9. {django_components-0.26 → django_components-0.26.2}/django_components/apps.py +0 -0
  10. {django_components-0.26 → django_components-0.26.2}/django_components/component.py +0 -0
  11. {django_components-0.26 → django_components-0.26.2}/django_components/component_registry.py +0 -0
  12. {django_components-0.26 → django_components-0.26.2}/django_components/middleware.py +0 -0
  13. {django_components-0.26 → django_components-0.26.2}/django_components/template_loader.py +0 -0
  14. {django_components-0.26 → django_components-0.26.2}/django_components/templatetags/__init__.py +0 -0
  15. {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/SOURCES.txt +0 -0
  16. {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/dependency_links.txt +0 -0
  17. {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/requires.txt +0 -0
  18. {django_components-0.26 → django_components-0.26.2}/django_components.egg-info/top_level.txt +0 -0
  19. {django_components-0.26 → django_components-0.26.2}/pyproject.toml +0 -0
  20. {django_components-0.26 → django_components-0.26.2}/setup.cfg +0 -0
  21. {django_components-0.26 → django_components-0.26.2}/tests/test_component.py +0 -0
  22. {django_components-0.26 → django_components-0.26.2}/tests/test_context.py +0 -0
  23. {django_components-0.26 → django_components-0.26.2}/tests/test_dependency_rendering.py +0 -0
  24. {django_components-0.26 → django_components-0.26.2}/tests/test_registry.py +0 -0
  25. {django_components-0.26 → django_components-0.26.2}/tests/test_templatetags.py +0 -0
  26. {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>&lt;AIT ALI EL HOSAYN&gt;</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></tr>
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>&lt;AIT ALI EL HOSAYN&gt;</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></tr>
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"/>
@@ -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: List[FillNode] = []
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>&lt;AIT ALI EL HOSAYN&gt;</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></tr>
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"/>
@@ -3,7 +3,7 @@ import os
3
3
 
4
4
  from setuptools import find_packages, setup
5
5
 
6
- VERSION = "0.26"
6
+ VERSION = "0.26.2"
7
7
 
8
8
  setup(
9
9
  name="django_components",