diff options
Diffstat (limited to 'priv')
-rw-r--r-- | priv/templates/entry-with-main.mjs | 3 | ||||
-rw-r--r-- | priv/templates/entry-with-start.mjs | 4 | ||||
-rw-r--r-- | priv/templates/index-with-lustre-ui.html | 19 | ||||
-rw-r--r-- | priv/templates/index.html | 15 |
4 files changed, 41 insertions, 0 deletions
diff --git a/priv/templates/entry-with-main.mjs b/priv/templates/entry-with-main.mjs new file mode 100644 index 0000000..c0c151c --- /dev/null +++ b/priv/templates/entry-with-main.mjs @@ -0,0 +1,3 @@ +import { main } from "../dev/javascript/{app_name}/{app_name}.mjs"; + +main(); diff --git a/priv/templates/entry-with-start.mjs b/priv/templates/entry-with-start.mjs new file mode 100644 index 0000000..785cf0f --- /dev/null +++ b/priv/templates/entry-with-start.mjs @@ -0,0 +1,4 @@ +import { start } from "../dev/javascript/lustre/lustre.mjs"; +import { main } from "../dev/javascript/{app_name}/{app_name}.mjs"; + +start(main(), "#app", undefined); diff --git a/priv/templates/index-with-lustre-ui.html b/priv/templates/index-with-lustre-ui.html new file mode 100644 index 0000000..f7a51f0 --- /dev/null +++ b/priv/templates/index-with-lustre-ui.html @@ -0,0 +1,19 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + <title>🚧 {app_name}</title> + + <link + rel="stylesheet" + href="https://cdn.jsdelivr.net/gh/lustre-labs/ui/priv/styles.css" + /> + <script type="module" src="./index.mjs"></script> + </head> + + <body> + <div id="app"></div> + </body> +</html> diff --git a/priv/templates/index.html b/priv/templates/index.html new file mode 100644 index 0000000..42bd2bf --- /dev/null +++ b/priv/templates/index.html @@ -0,0 +1,15 @@ +<!doctype html> +<html lang="en"> + <head> + <meta charset="UTF-8" /> + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> + + <title>🚧 {app_name}</title> + + <script type="module" src="./index.mjs"></script> + </head> + + <body> + <div id="app"></div> + </body> +</html> |