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: '#>'
}
});
+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.
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.