Core: Nunjucks configuration

Created on 21 Feb 2017  路  6Comments  路  Source: adonisjs/core

I'd like to change nunjunck's configuration.. How can i do that?

Example:

nunjucks.configure('/path/to/templates', { tags: { blockStart: '<%', blockEnd: '%>', variableStart: '<$', variableEnd: '$>', commentStart: '<#', commentEnd: '#>' } });

Most helpful comment

Not possible as of now, since AdonisJs does not expose nunjucks. I am also personally against the customizing too many things, since it only makes the eco-system confusing.

Anyways, the major release of Adonis(v4) will expose nunjucks.

All 6 comments

+1

It'd be great to have, for example, a view.js config file allows us to redifine Nunjucks default config :)

Otherwise, you can set the Nunjucks settings on app load (in bootstrap/app.js file if I'm not wrong)

Not possible as of now, since AdonisJs does not expose nunjucks. I am also personally against the customizing too many things, since it only makes the eco-system confusing.

Anyways, the major release of Adonis(v4) will expose nunjucks.

@thetutlage Ok thanks a lot !
The V4 release is scheduled for when ? :)

@betaWeb There is no tentative date for that. Somewhere around July, August

Closing since not actionable and will be considered with the new release

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

themodernpk picture themodernpk  路  3Comments

umaams picture umaams  路  3Comments

Extarys picture Extarys  路  4Comments

ghost picture ghost  路  3Comments

itsg2jakhmola picture itsg2jakhmola  路  3Comments