Created
February 1, 2016 22:28
-
-
Save mobinni/b2b344aa4456942760b3 to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by mobinni on 12/01/16. | |
*/ | |
import ejs from 'ejs'; | |
import webpackMw from '../middleware/webpack'; | |
import {initialise} from '../../app/lib'; | |
const {store, modules, middlewares} = initialise([]); | |
export default function (callback) { | |
webpackMw.query('index.html', function (err, body) { | |
if (err) console.log(err); | |
let output = ejs.render(body, { | |
reactOutput: '', | |
store: '{}' | |
}); | |
callback(output); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment