generator-roosevelt
Version:
🏭🧸 Command line application for creating Roosevelt apps.
13 lines (12 loc) • 356 B
JavaScript
(async () => {
await require('roosevelt')({
onBeforeMiddleware: (app) => {
// this defines a model used on all static pages, unless overridden by a page-specific model
app.get('htmlModels')['*'] = {
global: {
hello: 'And I\'m a variable trickling down through the global model!'
}
}
}
}).init()
})()