From cd760f0cf83cb00b9c4b372ed1b6ed5baf1b6272 Mon Sep 17 00:00:00 2001 From: Mhykol Date: Mon, 3 Jun 2024 05:26:09 -0400 Subject: Added error handling for missing directories and examples --- examples/index.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 examples/index.js (limited to 'examples/index.js') 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: ` +
+

Welcome to Cosmic!

+

Please read the README.md

+
+ `, + meta: { + keywords: 'Cosmic', + description: 'Welcome to Cosmic!' + } + } + } +} + +module.exports = (x) => {return new Index(x)} + -- cgit v1.2.3-70-g09d2