mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
update simple script to reduce verbosity
This commit is contained in:
@@ -13,11 +13,10 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="outputDiv" class="font-mono" style="background-color:yellow"></div>
|
||||
<py-script output="outputDiv">
|
||||
from datetime import datetime
|
||||
now = datetime.now()
|
||||
now.strftime("%m/%d/%Y, %H:%M:%S")
|
||||
<py-script>
|
||||
from datetime import datetime
|
||||
now = datetime.now()
|
||||
now.strftime("%m/%d/%Y, %H:%M:%S")
|
||||
</py-script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user