htmy 0.7.0__py3-none-any.whl → 0.7.1__py3-none-any.whl
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.
htmy/renderer/default.py
CHANGED
|
@@ -209,8 +209,9 @@ class _ComponentRenderer:
|
|
|
209
209
|
process_node_result(node, result, child_context)
|
|
210
210
|
|
|
211
211
|
if async_todos:
|
|
212
|
-
|
|
213
|
-
async_todos
|
|
212
|
+
current_async_todos = async_todos
|
|
213
|
+
self._async_todos = async_todos = deque()
|
|
214
|
+
await asyncio.gather(*(process_async_node(n, ctx) for n, ctx in current_async_todos))
|
|
214
215
|
|
|
215
216
|
if self._error_boundary_todos:
|
|
216
217
|
await asyncio.gather(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: htmy
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.1
|
|
4
4
|
Summary: Async, pure-Python rendering engine.
|
|
5
5
|
License: MIT
|
|
6
6
|
Author: Peter Volf
|
|
@@ -116,7 +116,7 @@ user_table = html.table(
|
|
|
116
116
|
)
|
|
117
117
|
```
|
|
118
118
|
|
|
119
|
-
`htmy` also provides a `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions to convert them into components (preserving the `props` typing).
|
|
119
|
+
`htmy` also provides a powerful `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions and methods to convert them into components (preserving the `props` typing). You can find out more about this feature in the [Function components](https://volfpeter.github.io/htmy/function-components/) guide.
|
|
120
120
|
|
|
121
121
|
Here is the same example as above, but with function components:
|
|
122
122
|
|
|
@@ -11,11 +11,11 @@ htmy/md/typing.py,sha256=LF-AEvo7FCW2KumyR5l55rsXizV2E4AHVLKFf6lApgM,762
|
|
|
11
11
|
htmy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
htmy/renderer/__init__.py,sha256=xnP_aaoK-pTok-69wi8O_xlsgjoKTzWd2lIIeHGcuaY,226
|
|
13
13
|
htmy/renderer/baseline.py,sha256=hHb7CoQhFFdD7Sdw0ltR1-XLGwE9pqmfL5yKFeF2rCg,4288
|
|
14
|
-
htmy/renderer/default.py,sha256=
|
|
14
|
+
htmy/renderer/default.py,sha256=G6K5YptvH9QvEvMQZdLPtgUblO_zTv4Eo6TETHZDlX8,10869
|
|
15
15
|
htmy/snippet.py,sha256=dkHEOuULGsgawIMnSz99hghvNu8pLVGAQMQSlrn9ibY,10260
|
|
16
16
|
htmy/typing.py,sha256=0spTpz_JWql2yy_lSlRx0uqgXar7fxwyBqWeIzltvKU,3111
|
|
17
17
|
htmy/utils.py,sha256=Kp0j9G8CBeRiyFGmz-CoDiLtXHfpvHzlTVsWeDhIebM,1935
|
|
18
|
-
htmy-0.7.
|
|
19
|
-
htmy-0.7.
|
|
20
|
-
htmy-0.7.
|
|
21
|
-
htmy-0.7.
|
|
18
|
+
htmy-0.7.1.dist-info/LICENSE,sha256=rFtoGU_3c_rlacXgOZapTHfMErN-JFPT5Bq_col4bqI,1067
|
|
19
|
+
htmy-0.7.1.dist-info/METADATA,sha256=-1VV-vjHWSTWiqNq1bi_E8sKy3PGSLMmauuuKscc70A,18459
|
|
20
|
+
htmy-0.7.1.dist-info/WHEEL,sha256=XbeZDeTWKc1w7CSIyre5aMDU_-PohRwTQceYnisIYYY,88
|
|
21
|
+
htmy-0.7.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|