Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add switch --nunjucks to add the Nunjucks template engine #87

Closed
kruncher opened this issue Oct 27, 2015 · 2 comments
Closed

Add switch --nunjucks to add the Nunjucks template engine #87

kruncher opened this issue Oct 27, 2015 · 2 comments
Assignees

Comments

@kruncher
Copy link

This is by far my favorite template engine and it would be pretty sweet if this generator could automatically wire this up as the default template engine.

https://mozilla.github.io/nunjucks/

It is pretty simple to configure express.js to use nunjucks:

var app = express();

nunjucks.configure('views', {
    autoescape: true,
    express: app
});

app.get('/', function(req, res) {
    res.render('index.html');
});

(above snippet taken from https://mozilla.github.io/nunjucks/getting-started.html)

@dougwilson
Copy link
Contributor

SGTM. Would you be willing to put together a PR? It should be pretty straight-forward.

@dougwilson
Copy link
Contributor

Hi @kruncher a PR was created to do this, but when I reviewed it and dig into it, I found the following things (from #119):

I was also just browsing their issues and it looks like they don't really want to deal with the Express.js integration anyway: mozilla/nunjucks#611

cwonrails pushed a commit to cwonrails/generator that referenced this issue Apr 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants