{"action":"created","issue":{"url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/134","repository_url":"https://api.github.com/repos/alphagov/govuk_prototype_kit","labels_url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/134/comments","events_url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/134/events","html_url":"https://github.com/alphagov/govuk_prototype_kit/pull/134","id":128147364,"number":134,"title":"Separate nunjucks custom filters to lib file","user":{"login":"paulmsmith","id":57055,"avatar_url":"https://avatars.githubusercontent.com/u/57055?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmsmith","html_url":"https://github.com/paulmsmith","followers_url":"https://api.github.com/users/paulmsmith/followers","following_url":"https://api.github.com/users/paulmsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulmsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmsmith/subscriptions","organizations_url":"https://api.github.com/users/paulmsmith/orgs","repos_url":"https://api.github.com/users/paulmsmith/repos","events_url":"https://api.github.com/users/paulmsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulmsmith/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-22T12:27:37Z","updated_at":"2016-02-03T08:39:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/pulls/134","html_url":"https://github.com/alphagov/govuk_prototype_kit/pull/134","diff_url":"https://github.com/alphagov/govuk_prototype_kit/pull/134.diff","patch_url":"https://github.com/alphagov/govuk_prototype_kit/pull/134.patch"},"body":"As [discussed in this issue](https://github.com/alphagov/govuk_prototype_kit/issues/133). This is a PR to separate custom Nunjucks filters into their own dedicated lib file for easier maintenance/scalability.\r\n\r\nProvides a few small examples, mainly for people to follow and grasp how the lib file is currently structured. I had an idea for providing a core set of GovUK custom filters and then a separate file for instance/app specific custom filters but I'm contributing this for now to get the ball rolling.\r\n\r\nI also created a template ```/examples/filters``` to demonstrate the custom filters in use. Any feedback or potential issues please let me know and we can solve them together."},"comment":{"url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/comments/179092322","html_url":"https://github.com/alphagov/govuk_prototype_kit/pull/134#issuecomment-179092322","issue_url":"https://api.github.com/repos/alphagov/govuk_prototype_kit/issues/134","id":179092322,"user":{"login":"paulmsmith","id":57055,"avatar_url":"https://avatars.githubusercontent.com/u/57055?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmsmith","html_url":"https://github.com/paulmsmith","followers_url":"https://api.github.com/users/paulmsmith/followers","following_url":"https://api.github.com/users/paulmsmith/following{/other_user}","gists_url":"https://api.github.com/users/paulmsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmsmith/subscriptions","organizations_url":"https://api.github.com/users/paulmsmith/orgs","repos_url":"https://api.github.com/users/paulmsmith/repos","events_url":"https://api.github.com/users/paulmsmith/events{/privacy}","received_events_url":"https://api.github.com/users/paulmsmith/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T08:39:27Z","updated_at":"2016-02-03T08:39:27Z","body":"@joelanman I Think you're right to question if this is a common user need. Now that I'm more familiar with the concept then I'd say it is not (yet?) a common user need, would it be more helpful for me to contribute some documentation for advanced users or tips & tricks like this? cc: @timpaul "}}