diff options
| author | Mhykol <mchaeldonald62@pm.me> | 2024-06-03 05:26:09 -0400 |
|---|---|---|
| committer | Mhykol <mchaeldonald62@pm.me> | 2024-06-03 05:26:09 -0400 |
| commit | cd760f0cf83cb00b9c4b372ed1b6ed5baf1b6272 (patch) | |
| tree | 94cf37e9c3dcf017fc65a50b52045856a6100537 /examples/index.js | |
| parent | 3135b036ce787d00228e627d9af58dfd9b5a1b08 (diff) | |
Added error handling for missing directories and examples
Diffstat (limited to 'examples/index.js')
| -rw-r--r-- | examples/index.js | 21 |
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)} + |
