UNPKG

@miyagi/core

Version:

miyagi is a component development tool for JavaScript template engines.

16 lines (13 loc) 340 B
/** * Module for registering the views in express * * @module initViews */ const path = require("path"); const config = require("../config.json"); module.exports = function initViews(app) { app.set("views", [ path.join(__dirname, `../../${config.folders.views}`), path.resolve(app.get("config").components.folder), ]); };