{"action":"created","issue":{"url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/18","repository_url":"https://api.github.com/repos/cobalt-org/liquid-rust","labels_url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/18/comments","events_url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/18/events","html_url":"https://github.com/cobalt-org/liquid-rust/pull/18","id":141963541,"number":18,"title":"Implementing filters for capitalize, downcase, first, last, prepend, append and pluralize","user":{"login":"ligthyear","id":40496,"avatar_url":"https://avatars.githubusercontent.com/u/40496?v=3","gravatar_id":"","url":"https://api.github.com/users/ligthyear","html_url":"https://github.com/ligthyear","followers_url":"https://api.github.com/users/ligthyear/followers","following_url":"https://api.github.com/users/ligthyear/following{/other_user}","gists_url":"https://api.github.com/users/ligthyear/gists{/gist_id}","starred_url":"https://api.github.com/users/ligthyear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ligthyear/subscriptions","organizations_url":"https://api.github.com/users/ligthyear/orgs","repos_url":"https://api.github.com/users/ligthyear/repos","events_url":"https://api.github.com/users/ligthyear/events{/privacy}","received_events_url":"https://api.github.com/users/ligthyear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-18T19:57:22Z","updated_at":"2016-04-05T08:00:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/cobalt-org/liquid-rust/pulls/18","html_url":"https://github.com/cobalt-org/liquid-rust/pull/18","diff_url":"https://github.com/cobalt-org/liquid-rust/pull/18.diff","patch_url":"https://github.com/cobalt-org/liquid-rust/pull/18.patch"},"body":"This implements the a few more filters.\r\n\r\nSpecifically it adds:\r\n\r\n  - [x] capitalize - capitalize words in the input sentence\r\n  - [x] downcase - convert an input string to lowercase\r\n  - [x] first - get the first element of the passed in array\r\n  - [x] last - get the last element of the passed in array\r\n  - [x] prepend - prepend a string e.g. {{ 'bar' | prepend:'foo' }} #=> 'foobar'\r\n  - [x] pluralize - return the second word if the input is not 1, otherwise return the first word e.g. {{ 3 | pluralize: 'item', 'items' }} #=> 'items'\r\n  - [x] append - append a string e.g. {{ 'foo' | append:'bar' }} #=> 'foobar'\r\nslice - slice a string. Takes an offset and length, e.g. {{ \"hello\" | slice: -3, 3 }} #=> llo\r\n\r\n\r\nReferences #11"},"comment":{"url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/comments/205709976","html_url":"https://github.com/cobalt-org/liquid-rust/pull/18#issuecomment-205709976","issue_url":"https://api.github.com/repos/cobalt-org/liquid-rust/issues/18","id":205709976,"user":{"login":"johannhof","id":2622601,"avatar_url":"https://avatars.githubusercontent.com/u/2622601?v=3","gravatar_id":"","url":"https://api.github.com/users/johannhof","html_url":"https://github.com/johannhof","followers_url":"https://api.github.com/users/johannhof/followers","following_url":"https://api.github.com/users/johannhof/following{/other_user}","gists_url":"https://api.github.com/users/johannhof/gists{/gist_id}","starred_url":"https://api.github.com/users/johannhof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johannhof/subscriptions","organizations_url":"https://api.github.com/users/johannhof/orgs","repos_url":"https://api.github.com/users/johannhof/repos","events_url":"https://api.github.com/users/johannhof/events{/privacy}","received_events_url":"https://api.github.com/users/johannhof/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T08:00:22Z","updated_at":"2016-04-05T08:00:22Z","body":"@ligthyear don't worry about it, I can totally relate. I'll review it soon! Thanks for contributing"}}