Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 875 Bytes

File metadata and controls

31 lines (18 loc) · 875 Bytes

Overview

We supply some HTML elements can be used to help simplify development.


PyScript

PyScript code block. The text content of this tag are executed within the PyScript interpreter. This can be used as an alternative to the #!python reactpy.html.script.

This is a primitive HTML tag that is leveraged by reactpy_django.components.pyscript_component.

The pyscript tag functions identically to HTML tags contained within #!python reactpy.html.

=== "components.py"

```python
{% include "../../examples/python/pyscript_tag.py" %}
```

=== "my_template.html"

```jinja
{% include "../../examples/html/pyscript_tag.html" %}
```

{% include-markdown "./components.md" start="" end="" %}