diff --git a/pyscriptjs/public/index.html b/pyscriptjs/public/index.html
new file mode 100644
index 00000000000..4a0b0f8cce7
--- /dev/null
+++ b/pyscriptjs/public/index.html
@@ -0,0 +1,54 @@
+
+
+
+
+
+
+
+
+
+
+ PyScript
+
+
+
+
+ <py-script>
+
+
+
+ import sys
+ print(sys.version)
+
+
+ Hello World 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="https://pyscript.net/latest/pyscript.css" />
+ <script defer src="https://pyscript.net/latest/build/pyscript.js"></script>
+ </head>
+
+ <body>
+ Hello world! <br>
+ This is the current date and time, as computed by Python:
+ <py-script>
+from datetime import datetime
+now = datetime.now()
+now.strftime("%m/%d/%Y, %H:%M:%S")
+ </py-script>
+ </body>
+</html>
+
+
+
+
diff --git a/pyscriptjs/rollup.config.js b/pyscriptjs/rollup.config.js
index b7dc171d252..995617dd21a 100644
--- a/pyscriptjs/rollup.config.js
+++ b/pyscriptjs/rollup.config.js
@@ -48,7 +48,8 @@ export default {
// This will make sure that examples will always get the latest build folder
!production && copy({
targets: [
- { src: 'build/*', dest: 'examples/build' }
+ { src: 'build/*', dest: 'examples/build' },
+ { src: 'public/index.html', dest: 'build/' },
]
}),
!production && serve(),