diff --git a/public/index.html b/public/index.html new file mode 100644 index 00000000..e232906e --- /dev/null +++ b/public/index.html @@ -0,0 +1,53 @@ + + + + + + + + + + PyScript + + + +
+

<py-script>

+ +
+ + from pyscript import display + import sys + display(sys.version) + + +

Example

+
+<!DOCTYPE html>
+<html lang="en">
+    <head>
+    <meta charset="utf-8" />
+    <meta name="viewport" content="width=device-width,initial-scale=1" />
+    <title>PyScript Hello World</title>
+    <link rel="stylesheet" href="[[PATH]]core.css" />
+    <script defer src="[[PATH]]core.js"></script>
+    </head>
+
+    <body>
+    Hello world! <br>
+    This is the current date and time, as computed by Python:
+    <py-script>
+from pyscript import display
+from datetime import datetime
+now = datetime.now()
+display(now.strftime("%m/%d/%Y, %H:%M:%S"))
+    </py-script>
+    </body>
+</html>
+
+ + \ No newline at end of file