summaryrefslogtreecommitdiff
path: root/examples/index.js
diff options
context:
space:
mode:
authorMhykol <mchaeldonald62@pm.me>2024-06-03 05:26:09 -0400
committerMhykol <mchaeldonald62@pm.me>2024-06-03 05:26:09 -0400
commitcd760f0cf83cb00b9c4b372ed1b6ed5baf1b6272 (patch)
tree94cf37e9c3dcf017fc65a50b52045856a6100537 /examples/index.js
parent3135b036ce787d00228e627d9af58dfd9b5a1b08 (diff)
Added error handling for missing directories and examples
Diffstat (limited to 'examples/index.js')
-rw-r--r--examples/index.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/index.js b/examples/index.js
new file mode 100644
index 0000000..64a619b
--- /dev/null
+++ b/examples/index.js
@@ -0,0 +1,21 @@
+class Index {
+ constructor() {}
+
+ async Main() {
+ return {
+ html: `
+ <section>
+ <h1>Welcome to <a href='https://git.fatalmatrix.xyz/cosmic.git'>Cosmic</a>!</h1>
+ <p>Please read the README.md</p>
+ </section>
+ `,
+ meta: {
+ keywords: 'Cosmic',
+ description: 'Welcome to Cosmic!'
+ }
+ }
+ }
+}
+
+module.exports = (x) => {return new Index(x)}
+