{"action":"created","issue":{"url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/14","labels_url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/14/comments","events_url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/14/events","html_url":"https://github.com/mjmostachetti/comicBattle/pull/14","id":96419834,"number":14,"title":"Cleanup Jade templates; separate blocks for content, templates, scripts","user":{"login":"sirlancelot","id":71916,"avatar_url":"https://avatars.githubusercontent.com/u/71916?v=3","gravatar_id":"","url":"https://api.github.com/users/sirlancelot","html_url":"https://github.com/sirlancelot","followers_url":"https://api.github.com/users/sirlancelot/followers","following_url":"https://api.github.com/users/sirlancelot/following{/other_user}","gists_url":"https://api.github.com/users/sirlancelot/gists{/gist_id}","starred_url":"https://api.github.com/users/sirlancelot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirlancelot/subscriptions","organizations_url":"https://api.github.com/users/sirlancelot/orgs","repos_url":"https://api.github.com/users/sirlancelot/repos","events_url":"https://api.github.com/users/sirlancelot/events{/privacy}","received_events_url":"https://api.github.com/users/sirlancelot/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-21T21:24:49Z","updated_at":"2015-07-21T21:29:15Z","closed_at":"2015-07-21T21:28:38Z","pull_request":{"url":"https://api.github.com/repos/mjmostachetti/comicBattle/pulls/14","html_url":"https://github.com/mjmostachetti/comicBattle/pull/14","diff_url":"https://github.com/mjmostachetti/comicBattle/pull/14.diff","patch_url":"https://github.com/mjmostachetti/comicBattle/pull/14.patch"},"body":"I tried to put similar pieces of code together and created a separate Jade block for each. The multiple Jade blocks are functionally identical to what was there before but it helps to create a more self-documenting markup file.\r\n\r\nI put the script tags and includes in the right spot so that the includes go inside the script tags. Inside `components` you do not need to declare an html and body tag because they aren't ever rendered on their own.\r\n\r\nAdding an ID to an element in a Jade file is as easy at adding a `#id-of-tag` to it. If you want to ID a `div` then you don't even need to write `div` (shown in `login.jade`). This notation puts it more in-line with CSS & jQuery and so makes find/replace across your codebase much easier."},"comment":{"url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/comments/123483137","html_url":"https://github.com/mjmostachetti/comicBattle/pull/14#issuecomment-123483137","issue_url":"https://api.github.com/repos/mjmostachetti/comicBattle/issues/14","id":123483137,"user":{"login":"sirlancelot","id":71916,"avatar_url":"https://avatars.githubusercontent.com/u/71916?v=3","gravatar_id":"","url":"https://api.github.com/users/sirlancelot","html_url":"https://github.com/sirlancelot","followers_url":"https://api.github.com/users/sirlancelot/followers","following_url":"https://api.github.com/users/sirlancelot/following{/other_user}","gists_url":"https://api.github.com/users/sirlancelot/gists{/gist_id}","starred_url":"https://api.github.com/users/sirlancelot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sirlancelot/subscriptions","organizations_url":"https://api.github.com/users/sirlancelot/orgs","repos_url":"https://api.github.com/users/sirlancelot/repos","events_url":"https://api.github.com/users/sirlancelot/events{/privacy}","received_events_url":"https://api.github.com/users/sirlancelot/received_events","type":"User","site_admin":false},"created_at":"2015-07-21T21:29:15Z","updated_at":"2015-07-21T21:29:15Z","body":":+1: "}}