21 lines
No EOL
742 B
JavaScript
21 lines
No EOL
742 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 - \`const {QuickDB} = require("quick.db")
|
|
global.db = new QuickDB()\``)
|
|
|
|
global.app.get('/', (req, res) => {
|
|
res.send(mainHTML);
|
|
}); |