{"action":"created","issue":{"url":"https://api.github.com/repos/kapouer/domt/issues/26","repository_url":"https://api.github.com/repos/kapouer/domt","labels_url":"https://api.github.com/repos/kapouer/domt/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/kapouer/domt/issues/26/comments","events_url":"https://api.github.com/repos/kapouer/domt/issues/26/events","html_url":"https://github.com/kapouer/domt/issues/26","id":163639721,"number":26,"title":"find a way to implement filters parameters without bloating the parser","user":{"login":"kapouer","id":131406,"avatar_url":"https://avatars.githubusercontent.com/u/131406?v=3","gravatar_id":"","url":"https://api.github.com/users/kapouer","html_url":"https://github.com/kapouer","followers_url":"https://api.github.com/users/kapouer/followers","following_url":"https://api.github.com/users/kapouer/following{/other_user}","gists_url":"https://api.github.com/users/kapouer/gists{/gist_id}","starred_url":"https://api.github.com/users/kapouer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapouer/subscriptions","organizations_url":"https://api.github.com/users/kapouer/orgs","repos_url":"https://api.github.com/users/kapouer/repos","events_url":"https://api.github.com/users/kapouer/events{/privacy}","received_events_url":"https://api.github.com/users/kapouer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-04T09:39:51Z","updated_at":"2016-07-08T08:07:48Z","closed_at":null,"body":"Typically this is bad:\r\n```\r\n<div class=\"[items.selected|select(\"with.dot\", 12, false)]\">\r\n``` \r\n\r\nThe quotes inside the parameters must be escaped...\r\nA better way would be to report the call in another attribute\r\n\r\n```\r\n<div class=\"some [items.selected|call]\" domt-call=\"with.dot\" domt-call=\"12\">\r\n```\r\nbut it doesn't allow typed params.\r\nUse cases ?\r\nAlternate output: `items.name|or(missing name)` currently done by using a placeholder like\r\n```\r\n<div data-name=\"items.name|missing\" data-missing=\"missing name\">\r\n```\r\nIt could be\r\n```\r\n<div data-name=\"items.name|myfilter anything\" domt-anything=\"missing name\">\r\n```\r\nSo params are passed by appending the name of a prefixed attribute.\r\nParams are always strings because they're meant to be values to be merged.\r\n"},"comment":{"url":"https://api.github.com/repos/kapouer/domt/issues/comments/231300393","html_url":"https://github.com/kapouer/domt/issues/26#issuecomment-231300393","issue_url":"https://api.github.com/repos/kapouer/domt/issues/26","id":231300393,"user":{"login":"kapouer","id":131406,"avatar_url":"https://avatars.githubusercontent.com/u/131406?v=3","gravatar_id":"","url":"https://api.github.com/users/kapouer","html_url":"https://github.com/kapouer","followers_url":"https://api.github.com/users/kapouer/followers","following_url":"https://api.github.com/users/kapouer/following{/other_user}","gists_url":"https://api.github.com/users/kapouer/gists{/gist_id}","starred_url":"https://api.github.com/users/kapouer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kapouer/subscriptions","organizations_url":"https://api.github.com/users/kapouer/orgs","repos_url":"https://api.github.com/users/kapouer/repos","events_url":"https://api.github.com/users/kapouer/events{/privacy}","received_events_url":"https://api.github.com/users/kapouer/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T08:07:48Z","updated_at":"2016-07-08T08:07:48Z","body":"Another thing that is typically problematic is to remove an attribute if data is empty, and leave the value unmodified if the attribute is not, and vice-versa. There is no way to currently combine the filters to get this result (!|drop modifies the value). It would be a lot simpler if there was."}}
{"actor":{"display_login":"kapouer"}}