Skip to content

Commit 5545833

Browse files
committed
Reduce diffs on html
1 parent 9131da2 commit 5545833

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

.editorconfig

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ indent_size = 4
2121
indent_size = 4
2222

2323
[*.html]
24+
indent_size = 4
2425
max_line_length = off
2526

2627
[*.js]

tests/test_app/templates/pyscript.html

+22-22
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,31 @@
33
<html lang="en">
44

55
<head>
6-
<meta charset="UTF-8" />
7-
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9-
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}" />
10-
<title>ReactPy</title>
11-
{% pyscript_setup extra_js='{"/static/moment.js":"moment"}' config="{}" %}
6+
<meta charset="UTF-8" />
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
8+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
9+
<link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}" />
10+
<title>ReactPy</title>
11+
{% pyscript_setup extra_js='{"/static/moment.js":"moment"}' config="{}" %}
1212
</head>
1313

1414
<body>
15-
<h1>ReactPy PyScript Test Page</h1>
16-
<hr>
17-
{% pyscript_component "./test_app/pyscript/components/hello_world.py" initial="<div id='hello-world-loading'>Loading...</div>" %}
18-
<hr>
19-
{% pyscript_component "./test_app/pyscript/components/custom_root.py" root="main" %}
20-
<hr>
21-
{% pyscript_component "./test_app/pyscript/components/multifile_parent.py" "./test_app/pyscript/components/multifile_child.py" %}
22-
<hr>
23-
{% pyscript_component "./test_app/pyscript/components/counter.py" %}
24-
<hr>
25-
{% component "test_app.pyscript.components.server_side.parent" %}
26-
<hr>
27-
{% component "test_app.pyscript.components.server_side.parent_toggle" %}
28-
<hr>
29-
{% pyscript_component "./test_app/pyscript/components/remote_js_module.py" %}
30-
<hr>
15+
<h1>ReactPy PyScript Test Page</h1>
16+
<hr>
17+
{% pyscript_component "./test_app/pyscript/components/hello_world.py" initial="<div id='hello-world-loading'>Loading...</div>" %}
18+
<hr>
19+
{% pyscript_component "./test_app/pyscript/components/custom_root.py" root="main" %}
20+
<hr>
21+
{% pyscript_component "./test_app/pyscript/components/multifile_parent.py" "./test_app/pyscript/components/multifile_child.py" %}
22+
<hr>
23+
{% pyscript_component "./test_app/pyscript/components/counter.py" %}
24+
<hr>
25+
{% component "test_app.pyscript.components.server_side.parent" %}
26+
<hr>
27+
{% component "test_app.pyscript.components.server_side.parent_toggle" %}
28+
<hr>
29+
{% pyscript_component "./test_app/pyscript/components/remote_js_module.py" %}
30+
<hr>
3131
</body>
3232

3333
</html>

0 commit comments

Comments
 (0)