@@ -19,19 +19,19 @@ This allows you to embedded any number of client-side PyScript components within
19
19
=== "components.py"
20
20
21
21
```python
22
- {% include "../../examples/python/pyscript-ssr-parent .py" %}
22
+ {% include "../../examples/python/pyscript_ssr_parent .py" %}
23
23
```
24
24
25
25
=== "root.py"
26
26
27
27
```python
28
- {% include "../../examples/python/pyscript-ssr-child .py" %}
28
+ {% include "../../examples/python/pyscript_ssr_child .py" %}
29
29
```
30
30
31
31
=== "my_template.html"
32
32
33
33
```jinja
34
- {% include "../../examples/html/pyscript-ssr-parent .html" %}
34
+ {% include "../../examples/html/pyscript_ssr_parent .html" %}
35
35
```
36
36
37
37
??? example "See Interface"
@@ -53,7 +53,7 @@ This allows you to embedded any number of client-side PyScript components within
53
53
=== "my_template.html"
54
54
55
55
```jinja
56
- {% include "../../examples/html/pyscript-setup .html" %}
56
+ {% include "../../examples/html/pyscript_setup .html" %}
57
57
```
58
58
59
59
<!-- pyscript-setup-required-end-->
@@ -65,19 +65,19 @@ This allows you to embedded any number of client-side PyScript components within
65
65
=== "components.py"
66
66
67
67
```python
68
- {% include "../../examples/python/pyscript-component-multiple-files-root .py" %}
68
+ {% include "../../examples/python/pyscript_component_multiple_files_root .py" %}
69
69
```
70
70
71
71
=== "root.py"
72
72
73
73
```python
74
- {% include "../../examples/python/pyscript-multiple-files-root .py" %}
74
+ {% include "../../examples/python/pyscript_multiple_files_root .py" %}
75
75
```
76
76
77
77
=== "child.py"
78
78
79
79
```python
80
- {% include "../../examples/python/pyscript-multiple-files-child .py" %}
80
+ {% include "../../examples/python/pyscript_multiple_files_child .py" %}
81
81
```
82
82
83
83
??? question "How do I display something while the component is loading?"
@@ -89,15 +89,15 @@ This allows you to embedded any number of client-side PyScript components within
89
89
=== "components.py"
90
90
91
91
```python
92
- {% include "../../examples/python/pyscript-component-initial-object .py" %}
92
+ {% include "../../examples/python/pyscript_component_initial_object .py" %}
93
93
```
94
94
95
95
However, you can also use a string containing raw HTML.
96
96
97
97
=== "components.py"
98
98
99
99
```python
100
- {% include "../../examples/python/pyscript-component-initial-string .py" %}
100
+ {% include "../../examples/python/pyscript_component_initial_string .py" %}
101
101
```
102
102
103
103
??? question "Can I use a different name for my root component?"
@@ -107,13 +107,13 @@ This allows you to embedded any number of client-side PyScript components within
107
107
=== "components.py"
108
108
109
109
```python
110
- {% include "../../examples/python/pyscript-component-root .py" %}
110
+ {% include "../../examples/python/pyscript_component_root .py" %}
111
111
```
112
112
113
113
=== "main.py"
114
114
115
115
```python
116
- {% include "../../examples/python/pyscript-root .py" %}
116
+ {% include "../../examples/python/pyscript_root .py" %}
117
117
```
118
118
119
119
---
@@ -171,7 +171,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
171
171
=== "components.py"
172
172
173
173
```python
174
- {% include "../../examples/python/vtc-cbv .py" %}
174
+ {% include "../../examples/python/vtc_cbv .py" %}
175
175
```
176
176
177
177
=== "views.py"
@@ -187,7 +187,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
187
187
=== "components.py"
188
188
189
189
```python
190
- {% include "../../examples/python/vtc-args .py" %}
190
+ {% include "../../examples/python/vtc_args .py" %}
191
191
```
192
192
193
193
=== "views.py"
@@ -215,7 +215,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
215
215
=== "components.py"
216
216
217
217
```python
218
- {% include "../../examples/python/vtc-strict-parsing .py" %}
218
+ {% include "../../examples/python/vtc_strict_parsing .py" %}
219
219
```
220
220
221
221
=== "views.py"
@@ -237,7 +237,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
237
237
=== "components.py"
238
238
239
239
```python
240
- {% include "../../examples/python/vtc-transforms .py" %}
240
+ {% include "../../examples/python/vtc_transforms .py" %}
241
241
```
242
242
243
243
=== "views.py"
@@ -308,7 +308,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
308
308
=== "components.py"
309
309
310
310
```python
311
- {% include "../../examples/python/vti-cbv .py" %}
311
+ {% include "../../examples/python/vti_cbv .py" %}
312
312
```
313
313
314
314
=== "views.py"
@@ -332,7 +332,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
332
332
=== "components.py"
333
333
334
334
```python
335
- {% include "../../examples/python/vti-args .py" %}
335
+ {% include "../../examples/python/vti_args .py" %}
336
336
```
337
337
338
338
=== "views.py"
@@ -364,7 +364,7 @@ Compatible with sync or async [Function Based Views](https://docs.djangoproject.
364
364
=== "components.py"
365
365
366
366
```python
367
- {% include "../../examples/python/vti-extra-props .py" %}
367
+ {% include "../../examples/python/vti_extra_props .py" %}
368
368
```
369
369
370
370
=== "views.py"
@@ -388,7 +388,7 @@ Allows you to defer loading a CSS stylesheet until a component begins rendering.
388
388
=== "components.py"
389
389
390
390
```python
391
- {% include "../../examples/python/django-css .py" %}
391
+ {% include "../../examples/python/django_css .py" %}
392
392
```
393
393
394
394
??? example "See Interface"
@@ -413,7 +413,7 @@ Allows you to defer loading a CSS stylesheet until a component begins rendering.
413
413
Here's an example on what you should avoid doing for Django static files:
414
414
415
415
```python
416
- {% include "../../examples/python/django-css-local-link .py" %}
416
+ {% include "../../examples/python/django_css_local_link .py" %}
417
417
```
418
418
419
419
??? question "How do I load external CSS?"
@@ -423,7 +423,7 @@ Allows you to defer loading a CSS stylesheet until a component begins rendering.
423
423
For external CSS, you should use `#!python html.link`.
424
424
425
425
```python
426
- {% include "../../examples/python/django-css-external-link .py" %}
426
+ {% include "../../examples/python/django_css_external_link .py" %}
427
427
```
428
428
429
429
??? question "Why not load my CSS in ` #!html <head> ` ?"
@@ -450,7 +450,7 @@ Be mindful of load order! If your JavaScript relies on the component existing on
450
450
=== "components.py"
451
451
452
452
```python
453
- {% include "../../examples/python/django-js .py" %}
453
+ {% include "../../examples/python/django_js .py" %}
454
454
```
455
455
456
456
??? example "See Interface"
@@ -475,7 +475,7 @@ Be mindful of load order! If your JavaScript relies on the component existing on
475
475
Here's an example on what you should avoid doing for Django static files:
476
476
477
477
```python
478
- {% include "../../examples/python/django-js-local-script .py" %}
478
+ {% include "../../examples/python/django_js_local_script .py" %}
479
479
```
480
480
481
481
??? question "How do I load external JS?"
@@ -485,7 +485,7 @@ Be mindful of load order! If your JavaScript relies on the component existing on
485
485
For external JavaScript, you should use `#!python html.script`.
486
486
487
487
```python
488
- {% include "../../examples/python/django-js-remote-script .py" %}
488
+ {% include "../../examples/python/django_js_remote_script .py" %}
489
489
```
490
490
491
491
??? question "Why not load my JS in ` #!html <head> ` ?"
0 commit comments