{"action":"created","issue":{"url":"https://api.github.com/repos/jadejs/jade/issues/670","labels_url":"https://api.github.com/repos/jadejs/jade/issues/670/labels{/name}","comments_url":"https://api.github.com/repos/jadejs/jade/issues/670/comments","events_url":"https://api.github.com/repos/jadejs/jade/issues/670/events","html_url":"https://github.com/jadejs/jade/issues/670","id":4967975,"number":670,"title":"Data Attribute shorthand","user":{"login":"guybedford","id":598730,"avatar_url":"https://avatars.githubusercontent.com/u/598730?v=3","gravatar_id":"","url":"https://api.github.com/users/guybedford","html_url":"https://github.com/guybedford","followers_url":"https://api.github.com/users/guybedford/followers","following_url":"https://api.github.com/users/guybedford/following{/other_user}","gists_url":"https://api.github.com/users/guybedford/gists{/gist_id}","starred_url":"https://api.github.com/users/guybedford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guybedford/subscriptions","organizations_url":"https://api.github.com/users/guybedford/orgs","repos_url":"https://api.github.com/users/guybedford/repos","events_url":"https://api.github.com/users/guybedford/events{/privacy}","received_events_url":"https://api.github.com/users/guybedford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jadejs/jade/milestones/2","labels_url":"https://api.github.com/repos/jadejs/jade/milestones/2/labels","id":558592,"number":2,"title":"2.0.0","description":null,"creator":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":11,"state":"open","created_at":"2014-02-04T15:26:30Z","updated_at":"2015-01-21T10:40:03Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2012-06-08T10:33:44Z","updated_at":"2015-01-21T10:40:03Z","closed_at":"2015-01-21T10:40:03Z","body":"Since Jade is all about writing less unnecssary html syntax, it could be really useful having a shorthand for data attributes.\n\nSo instead of writing:\n\ndiv(data-attribute=data.value)\n\nBeing able to write:\n\ndiv(:attribute=data.value)\n\nSince its detecting the \"data\" part now anyway for string escaping ((https://github.com/visionmedia/jade/commit/bef31f8ed3620adaef6385b1c60e9e1ae7bb93b9), it would just be one extra additional attribute parse check.\n\nThere may be a better symbol to use here than a colon as well.\n\nIt's a simple feature to add in, and would make templates that feature the use of data-attributes a lot more readable."},"comment":{"url":"https://api.github.com/repos/jadejs/jade/issues/comments/70816626","html_url":"https://github.com/jadejs/jade/issues/670#issuecomment-70816626","issue_url":"https://api.github.com/repos/jadejs/jade/issues/670","id":70816626,"user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T10:40:03Z","updated_at":"2015-01-21T10:40:03Z","body":"This will be considered as part of the 2.0.0 release.  If you still feel this is an issue after 2.0.0 has been released, please open a fresh issue."}}