roosevelt
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -5,3 +5,3 @@ { | ||
"author": "Eric Newport <kethinov@gmail.com>", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"homepage": "https://github.com/kethinov/roosevelt", | ||
@@ -8,0 +8,0 @@ "license": "Creative Commons Attribution 4.0 International License", |
module.exports = function(app) { | ||
app.route('*').all(function(req, res) { | ||
var model = require('global')(req, res); | ||
var model = require('models/global')(req, res); | ||
model.content.pageTitle = '{content.appTitle} - 404 not found'; | ||
@@ -5,0 +5,0 @@ model.host = req.host; |
module.exports = function(app) { | ||
app.route('/').get(function(req, res) { | ||
var model = require('global')(req, res); | ||
var model = require('models/global')(req, res); | ||
model.content.hello = 'Hi! I\'m a variable trickling down through the MVC structure!'; | ||
@@ -5,0 +5,0 @@ model.content.picLabel = 'Here\'s a silly picture of Teddy Roosevelt:'; |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
110272
0