1
0
mirror of https://github.com/stolksdorf/homebrewery.git synced 2025-12-13 23:25:58 +00:00

MOved the welcome text to it's own file

This commit is contained in:
Scott Tolksdorf
2016-01-13 17:13:59 -05:00
parent 8aca0ef0e8
commit 5b17e19c52
6 changed files with 80 additions and 77 deletions

View File

@@ -166,6 +166,8 @@ module.exports = function(app){
//Home and 404, etc.
var welcomeText = require('fs').readFileSync('./client/homebrew/homePage/welcome_msg.txt', 'utf8');
app.get('/homebrew*', function (req, res) {
vitreumRender({
page: './build/homebrew/bundle.dot',
@@ -173,6 +175,7 @@ module.exports = function(app){
prerenderWith : './client/homebrew/homebrew.jsx',
initialProps: {
url: req.originalUrl,
welcomeText : welcomeText
},
clearRequireCache : true,
}, function (err, page) {