{"action":"created","issue":{"url":"https://api.github.com/repos/codepb/jquery-template/issues/101","repository_url":"https://api.github.com/repos/codepb/jquery-template","labels_url":"https://api.github.com/repos/codepb/jquery-template/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/codepb/jquery-template/issues/101/comments","events_url":"https://api.github.com/repos/codepb/jquery-template/issues/101/events","html_url":"https://github.com/codepb/jquery-template/issues/101","id":152503529,"number":101,"title":"Template  has Additional DIV wrapped, why?","user":{"login":"itimryan","id":12961677,"avatar_url":"https://avatars.githubusercontent.com/u/12961677?v=3","gravatar_id":"","url":"https://api.github.com/users/itimryan","html_url":"https://github.com/itimryan","followers_url":"https://api.github.com/users/itimryan/followers","following_url":"https://api.github.com/users/itimryan/following{/other_user}","gists_url":"https://api.github.com/users/itimryan/gists{/gist_id}","starred_url":"https://api.github.com/users/itimryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itimryan/subscriptions","organizations_url":"https://api.github.com/users/itimryan/orgs","repos_url":"https://api.github.com/users/itimryan/repos","events_url":"https://api.github.com/users/itimryan/events{/privacy}","received_events_url":"https://api.github.com/users/itimryan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-02T08:28:11Z","updated_at":"2016-05-02T21:53:26Z","closed_at":null,"body":"Each inserted  populated template is wrapped by two layers of div\r\n\r\nfor example, I have template like this:\r\n\r\n`<script type=\"text/html\" id=\"items\">\r\n    <a data-href=\"id\" data-format=\"myUrl\" data-format-target=\"href\">\r\n        <h4 data-content=\"title\"></h4>\r\n        <p class=\"ping\" data-content=\"content\"></p>\r\n    </a>\r\n</script>`\r\n\r\nafter I inserted it into the DOM, they look like as below,\r\n\r\n`<div>\r\n  <div>\r\n    <a data-href=\"id\" data-format=\"myUrl\" data-format-target=\"href\">\r\n        <h4 data-content=\"title\"></h4>\r\n        <p class=\"ping\" data-content=\"content\"></p>\r\n     </a>\r\n </div>\r\n</div>`\r\n\r\nWho can tell me the reason?"},"comment":{"url":"https://api.github.com/repos/codepb/jquery-template/issues/comments/216375728","html_url":"https://github.com/codepb/jquery-template/issues/101#issuecomment-216375728","issue_url":"https://api.github.com/repos/codepb/jquery-template/issues/101","id":216375728,"user":{"login":"mklement0","id":588825,"avatar_url":"https://avatars.githubusercontent.com/u/588825?v=3","gravatar_id":"","url":"https://api.github.com/users/mklement0","html_url":"https://github.com/mklement0","followers_url":"https://api.github.com/users/mklement0/followers","following_url":"https://api.github.com/users/mklement0/following{/other_user}","gists_url":"https://api.github.com/users/mklement0/gists{/gist_id}","starred_url":"https://api.github.com/users/mklement0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mklement0/subscriptions","organizations_url":"https://api.github.com/users/mklement0/orgs","repos_url":"https://api.github.com/users/mklement0/repos","events_url":"https://api.github.com/users/mklement0/events{/privacy}","received_events_url":"https://api.github.com/users/mklement0/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T21:53:26Z","updated_at":"2016-05-02T21:53:26Z","body":"The nested `<div>`s come from the recursive invocation of `loadTemplate()`. \r\nMy pull request #102, which is about suppressing a wrapper element altogether, implicitly also fixes this bug, but only if you turn option `noDivWrapper` on."}}