{"issue":{"milestone":null,"user":{"id":72119,"login":"mileswebdesign","url":"https://api.github.com/users/mileswebdesign","avatar_url":"https://secure.gravatar.com/avatar/16d960876394367e190d05be5044c372?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"16d960876394367e190d05be5044c372"},"created_at":"2011-12-19T12:22:11Z","title":"Using modifiers/filters?","state":"open","updated_at":"2011-12-19T12:22:11Z","labels":[],"id":2599570,"html_url":"https://github.com/happyninjas/lex/issues/23","closed_at":null,"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"Hi guys, I was wondering if the option of having modifiers / filters (or however you want to name them) for variables would be something that could be added to Lex? I'm thinking something along the lines of:\r\n\r\nExample 1\r\n\r\nUppercase modifier:\r\n{{ title | uppercase }}\r\n{{# Parsed: LEX IS AWESOME! #}}\r\n\r\nExample 2\r\n\r\nCharacter limit modifier:\r\n{{ title | character_limit limit=\"10\" suffix=\"...\" }}\r\n{{# Parsed: Lex is awe... #}}\r\n\r\nExample 3\r\n\r\nChained modifier (uppercase and character limit):\r\n{{ title | uppercase | character_limit limit=\"10\" suffix=\"...\" }}\r\n{{# Parsed: LEX IS AWE... #}}\r\n\r\n\r\nNot sure about the syntax yet, but the main idea is to have some kind modifiers similar to Smarty. Or are there other / better ways to get this functionality?\r\n\r\nWould be happy to contribute to this feature, but will need some pointers to get started.","number":23,"url":"https://api.github.com/repos/happyninjas/lex/issues/23","comments":0,"assignee":null},"action":"opened"}