You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/static-typing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ htpy elements, fragments and context objects provides are "renderable". The `Ren
54
54
The `Renderable` protocol defines these methods:
55
55
56
56
-`.__str__()`- render as a HTML string by calling `str()`
57
-
-`.__html__()`- render as a HTML string that is safe to use as markup. This makes it possible to directly embed a `Renderable`objectin [Django/Jinja templates](django.md#using-htpy-as-part-of-an-existing-django-template).
57
+
-`.__html__()`- render as a HTML string that is safe to use as markup. This makes it possible to directly embed a `Renderable`objectin [Django/Jinja templates](./how-to/django.md#using-htpy-as-part-of-an-existing-django-template).
58
58
-`.iter_chunks()`- stream the contents as string "chunks". See [Streaming](streaming.md) for more information.
59
59
60
60
All `Renderable`'s are also `Node`'s and can always be used as a child element. You can use this to write reusable components that can be used as a child node but also be rendered by themselves or embedded into a Django or Jinja template:
0 commit comments