Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec19bfe

Browse files
committed
fix indentation error, and clarify the purpose of the demo
1 parent 67bfff6 commit ec19bfe

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

pyscriptjs/examples/simple_script.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width,initial-scale=1" />
66

7-
<title>Svelte app</title>
7+
<title>Simple script</title>
88

99
<link rel="icon" type="image/png" href="favicon.png" />
1010
<link rel="stylesheet" href="../build/pyscript.css" />
@@ -13,10 +13,12 @@
1313
</head>
1414

1515
<body>
16+
Hello world! <br>
17+
This is the current date and time, as computed by Python:
1618
<py-script>
17-
from datetime import datetime
18-
now = datetime.now()
19-
now.strftime("%m/%d/%Y, %H:%M:%S")
19+
from datetime import datetime
20+
now = datetime.now()
21+
now.strftime("%m/%d/%Y, %H:%M:%S")
2022
</py-script>
2123
</body>
2224
</html>

0 commit comments

Comments
 (0)