Skip to content

Commit c698f29

Browse files
committed
update simple script to reduce verbosity
1 parent cad87e6 commit c698f29

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pyscriptjs/examples/simple_script.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
</head>
1414

1515
<body>
16-
<div id="outputDiv" class="font-mono" style="background-color:yellow"></div>
17-
<py-script output="outputDiv">
18-
from datetime import datetime
19-
now = datetime.now()
20-
now.strftime("%m/%d/%Y, %H:%M:%S")
16+
<py-script>
17+
from datetime import datetime
18+
now = datetime.now()
19+
now.strftime("%m/%d/%Y, %H:%M:%S")
2120
</py-script>
2221
</body>
2322
</html>

0 commit comments

Comments
 (0)