contentcraft/addon-scripts/1.js
2024-10-13 11:33:05 -05:00

20 lines
No EOL
710 B
JavaScript

const mainHTML = global.marked.parse(`# Welcome to ContentCraft!
ContentCraft is similar to WordPress, except different.
You can do pretty much anything with it using the "addon-scripts" folder
(like this page here, and making other pages!)
We included a few basic libraries in the index.js for you, but feel free to
add more libraries into your addons, such as "quick.db" if you need to spin up a database.
Have a great day.
From all of us at Sneed Group.
PS: PRO TIP - USE "global" WHEN YOU WANT TO USE VARIABLES CROSS-ADDON.
Example - \`global.quickdb = require("quick.db)\``)
global.app.get('/', (req, res) => {
res.send(mainHTML);
});