Skip to content

Instantly share code, notes, and snippets.

@mobinni
Created February 1, 2016 22:28
Show Gist options
  • Save mobinni/b2b344aa4456942760b3 to your computer and use it in GitHub Desktop.
Save mobinni/b2b344aa4456942760b3 to your computer and use it in GitHub Desktop.
A Modern Isomorphic Stack with Redux - Part 2
/**
* 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