Nunjucks config for iso react in express.

I found this but my nunjucks were rendering my react components as strings in the template. Just had to flip the autoescape option.

Here is what you end up with:

var env = nunjucks.configure(app.get('views'), {
    autoescape: false,
    express: app
});

app.set('view engine', 'nunjucks');