Skip to content

Instantly share code, notes, and snippets.

@metasansana
Last active August 29, 2015 14:03
Show Gist options
  • Save metasansana/7326ec3d4652e7a4e19d to your computer and use it in GitHub Desktop.
Save metasansana/7326ec3d4652e7a4e19d to your computer and use it in GitHub Desktop.
KeystoneJS with nunjucks.
//Of course you may want to do more configuration than this.
var app = express();
var env = nunjucks.configure('/views', {
autoescape: true,
express: app,
tags: {
variableStart: '<$',
variableEnd: '$>'
}
});
keystone.set('view engine', 'html');
keystone.set('custom engine', env.render);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment