Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/static-typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ htpy elements, fragments and context objects provides are "renderable". The `Ren
The `Renderable` protocol defines these methods:

- `.__str__()` - render as a HTML string by calling `str()`
- `.__html__()` - render as a HTML string that is safe to use as markup. This makes it possible to directly embed a `Renderable` object in [Django/Jinja templates](django.md#using-htpy-as-part-of-an-existing-django-template).
- `.__html__()` - render as a HTML string that is safe to use as markup. This makes it possible to directly embed a `Renderable` object in [Django/Jinja templates](./how-to/django.md#using-htpy-as-part-of-an-existing-django-template).
- `.iter_chunks()` - stream the contents as string "chunks". See [Streaming](streaming.md) for more information.

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:
Expand Down