{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/493","labels_url":"https://api.github.com/repos/mozilla/nunjucks/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/nunjucks/issues/493/comments","events_url":"https://api.github.com/repos/mozilla/nunjucks/issues/493/events","html_url":"https://github.com/mozilla/nunjucks/issues/493","id":101885590,"number":493,"title":"Error while trying to use filter","user":{"login":"niksy","id":389286,"avatar_url":"https://avatars.githubusercontent.com/u/389286?v=3","gravatar_id":"","url":"https://api.github.com/users/niksy","html_url":"https://github.com/niksy","followers_url":"https://api.github.com/users/niksy/followers","following_url":"https://api.github.com/users/niksy/following{/other_user}","gists_url":"https://api.github.com/users/niksy/gists{/gist_id}","starred_url":"https://api.github.com/users/niksy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niksy/subscriptions","organizations_url":"https://api.github.com/users/niksy/orgs","repos_url":"https://api.github.com/users/niksy/repos","events_url":"https://api.github.com/users/niksy/events{/privacy}","received_events_url":"https://api.github.com/users/niksy/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-19T12:51:02Z","updated_at":"2015-08-21T07:17:26Z","closed_at":"2015-08-21T07:17:26Z","body":"I have module which precompiles template using [nunjucksify](https://github.com/rotundasoftware/nunjucksify):\r\n\r\n```javascript\r\nvar template = require('template.nunj');\r\nfunction render ( data ) {\r\n    return template.render(data);\r\n}\r\n```\r\n\r\nAnd template used in that module is:\r\n```\r\nCapitalize: {{ capitalize(\"aaa\") }}\r\n```\r\n\r\nWhen trying to use capitalize filter I get this error:\r\n\r\n```\r\nUncaught Template render error: (unknown path)\r\nError: Unable to call `capitalize`, which is undefined or falsey\r\n```\r\n\r\nApplication uses slim version of nunjucks. Is this something related to nunjucks or nunjucksify?"},"comment":{"url":"https://api.github.com/repos/mozilla/nunjucks/issues/comments/133313207","html_url":"https://github.com/mozilla/nunjucks/issues/493#issuecomment-133313207","issue_url":"https://api.github.com/repos/mozilla/nunjucks/issues/493","id":133313207,"user":{"login":"niksy","id":389286,"avatar_url":"https://avatars.githubusercontent.com/u/389286?v=3","gravatar_id":"","url":"https://api.github.com/users/niksy","html_url":"https://github.com/niksy","followers_url":"https://api.github.com/users/niksy/followers","following_url":"https://api.github.com/users/niksy/following{/other_user}","gists_url":"https://api.github.com/users/niksy/gists{/gist_id}","starred_url":"https://api.github.com/users/niksy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niksy/subscriptions","organizations_url":"https://api.github.com/users/niksy/orgs","repos_url":"https://api.github.com/users/niksy/repos","events_url":"https://api.github.com/users/niksy/events{/privacy}","received_events_url":"https://api.github.com/users/niksy/received_events","type":"User","site_admin":false},"created_at":"2015-08-21T07:17:26Z","updated_at":"2015-08-21T07:17:26Z","body":"Huh, it really works. Must have missed something. Closing issue."}}