by Before Semicolon

Pages

To create pages you must first specify in which directory relative to the server you will be placing your HTML pages when setting up the engine.

const {engine} = require('@beforesemicolon/html-plus');

const app = express();

engine(app, path.resolve(__dirname, './pages'));

Once you have your pages directory, which you can name anything you want, you can start creating HTML files which will be used as pages.

As mentioned in before, the way you structure your pages directory files is how the routes will be set. There are a few things you should know when doing so: