Add nunjucks example #1

Closed
jlongster opened this Issue Oct 16, 2012 · 1 comment

Comments

Projects
None yet
2 participants

Hey,

You can find code for integrating it here: http://nunjucks.jlongster.com/home#Express

It basically looks like this:

var nunjucks = require('nunjucks');
var express = require('express');

var env = new nunjucks.Environment(new nunjucks.FileSystemLoader('views'));
env.express(app);

You pass the path of your templates to the FileSystemLoader. You can ignore all the app.set("views") crap and other settings.

Owner

chovy commented Dec 12, 2012

not sure how this will work with current app.js layout.

@chovy chovy closed this Dec 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment