diff options
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)} + |
