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

Provide nunjucks configurations #5

Closed
Javiani opened this issue Apr 7, 2018 · 1 comment · Fixed by #11
Closed

Provide nunjucks configurations #5

Javiani opened this issue Apr 7, 2018 · 1 comment · Fixed by #11
Labels

Comments

@Javiani
Copy link

Javiani commented Apr 7, 2018

Hi,

How can I add global variables to my templates? How can I add new filters if there's no way to configure that?

@wind930
Copy link

wind930 commented Jun 3, 2018

@Javiani You can pay attention to my previous submission
https://github.com/wind930/parcel-plugin-nunjucks

A temporary scheme before the merge request

  1. npm i --save-dev wind930/parcel-plugin-nunjucks

  2. create nunjucks.config.js

  3. write your global variables in nunjucks.config.js

  4. use your global variables in templates

  5. fun to play

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants