Enduro.js exposes some of it’s functionality comfortably under a global variable enduro
through the use of linker.
You can access these libraries under enduro.api
You can render a template in /pages folder dynamically by using enduro.apitemper in the /app/app.js file:
var local_app = function () {}
var temper = enduro.api.temper
local_app.prototype.init = function (app) {
app.get('/random', function (req, res) {
temper.render('random', { random_number: Math.random() })
.then((output) => {
res.send(output)
})
})
}
module.exports = new local_app()