Last active
August 29, 2015 14:03
-
-
Save metasansana/7326ec3d4652e7a4e19d to your computer and use it in GitHub Desktop.
KeystoneJS with nunjucks.
This file contains 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
//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