-
Notifications
You must be signed in to change notification settings - Fork 236
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
Adds custom 'filters' to the nunjucks templating engine #200
Adds custom 'filters' to the nunjucks templating engine #200
Conversation
hey could you add this example page? https://gist.github.com/joelanman/1b9cbab0086af57e2f267daf35bfd48e |
actually I might as well make that PR |
Just tried this on another machine and got this error:
|
Ah... What version of Node is that machine running? Myself and Joel thought Looking at this matrix: http://node.green/ we felt we might be fine. On Sunday, 29 May 2016, Tim Paul notifications@github.com wrote:
Regards, |
@timpaul what version of node? |
Yeah, it was an old 0.x version. I updated and was good to go.
|
Clean PR to merge the basic functionality of adding custom filters to the nunjucks template engine used by the gov.uk prototyping kit.
lib/core_filters.js
is where I propose any future filters we want to include within the kit live. Which could be for example @edwardhorsford's proposed standard date filterapp/filters.js
is where bespoke filters for each instance of the kit would live (where users will add their own filters).cc: @joelanman