Closed jtini closed 8 years ago
hi @jtini,
What exactly you want to do with the filters? Do you mean custom filters in nunjucks, or some gulp task stream filtering?
@kristijanhusak I was working with @jtini on this also. the main goal is to add a custom nunjucks filter.
See: https://mozilla.github.io/nunjucks/api#custom-filters
I believe we should be able to do the able but I am a little unclear on if the new environment is being used for your module when we create it. Thoughts?
Thanks for getting back.
@corbanb That is not possible at this moment. I have plan for rewriting and adding that functionality, but I am not able to update npm repository until @carlosl gives me access. Will let you know when i manage to set up something.
sooo what do we gotta do here @carlosl ? :moneybag: ? :hand: ? :facepunch: ? :)
@corbanb @jtini I done some refactoring on the fork https://github.com/kristijanhusak/gulp-nunjucks-render. It's still not published to npm, but you could give it a try. I added an option to manipulate the environment, and also did some refactoring on path setup. Check the readme and let me know how it works for u.
Seems like we have no other option. I hope @carlosl will respond soon. Anyway, :+1:
Sorry guys... Feel your pain, @kristijanhusak giving you access to NPM now.
He has been a great help keeping this up-to-date as I've def been too busy to check in on it all the time, especially since I no longer use it for work. Thanks again @kristijanhusak and everybody else who's been contributing.
@kristijanhusak and @carlosl thanks guys. I did the same thing on my end by forking. I like your implementation better and will test soon. Thanks!
thanks @carlosl . I'll merge new code from my fork and publish it as 2.0.0, because it has breaking changes.
:+1:
@kamlekar @corbanb I updated it to version 2.0.0. Check the readme and changelog how to update.
Thanks @kristijanhusak !
Hi @carlosl,
Do you have any examples of a custom filters working with your module? I have been trying without much luck. It seems to be something around the nunjucks environment and getting it setup properly with your module. Love some help with the below.
Thanks!