0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-01-13 15:12:43 +00:00

Lots of progress, think I've figured out the spell format to use

This commit is contained in:
Scott Tolksdorf
2016-05-14 19:59:53 -04:00
parent 5fb6593217
commit f18663cff3
5 changed files with 196 additions and 11 deletions

View File

@@ -2,6 +2,10 @@ var _ = require('lodash');
var vitreumRender = require('vitreum/render');
console.log(JSON.stringify(require('./parsespell.js'), null, ' '));
module.exports = function(app){
app.get('/spellsort*', (req, res)=>{
vitreumRender({
@@ -10,7 +14,8 @@ module.exports = function(app){
prerenderWith : './client/spellsort/spellsort.jsx',
initialProps: {
url: req.originalUrl,
spells : require('./spellsort.spells.js')
//spells : require('./spellsort.spells.js')
spells : require('./parsespell.js')
},
clearRequireCache : !process.env.PRODUCTION,
}, function (err, page) {