{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/21493","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/21493/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/21493/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/21493/events","html_url":"https://github.com/twbs/bootstrap/issues/21493","id":198258815,"number":21493,"title":"Basic HTML includes with simple javascript library for bootstrap 4 ","user":{"login":"IamManchanda","id":4970624,"avatar_url":"https://avatars.githubusercontent.com/u/4970624?v=3","gravatar_id":"","url":"https://api.github.com/users/IamManchanda","html_url":"https://github.com/IamManchanda","followers_url":"https://api.github.com/users/IamManchanda/followers","following_url":"https://api.github.com/users/IamManchanda/following{/other_user}","gists_url":"https://api.github.com/users/IamManchanda/gists{/gist_id}","starred_url":"https://api.github.com/users/IamManchanda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IamManchanda/subscriptions","organizations_url":"https://api.github.com/users/IamManchanda/orgs","repos_url":"https://api.github.com/users/IamManchanda/repos","events_url":"https://api.github.com/users/IamManchanda/events{/privacy}","received_events_url":"https://api.github.com/users/IamManchanda/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-01-01T06:54:03Z","updated_at":"2017-01-01T09:34:18Z","closed_at":null,"body":"For static sites, Surely the best use case for **html includes** is static site generators like jekyll or hugo.\r\nI am not denying that but many static websites ( specially bootstrap ones ) dont want to use these static site generators simply because its complicated at first and thus use this type of below crutch\r\n\r\n`document.write(\"<h1 class=\\\"task\\\">Task for the day<\\/h1>\");`\r\n\r\nThis type of code is meant for testing only and isn't for production but still websites use this type of codes because its easy to get started with. Infact there are many [html to js convertors](https://www.google.co.in/search?q=html+to+js+converter) for the same use case.\r\n\r\nAs per my best of knowledge and experience, this doc_write is mostly and widely used in navbars, sidebar, and footers of website which is surely not great!!\r\n\r\nSo i wanna purpose this simple below thing for `**bootstrap.js**`\r\nhttp://www.w3schools.com/w3css/w3data_includes.asp\r\n\r\nDemo => http://www.w3schools.com/w3css/tryit.asp?filename=tryw3data_html_include_2\r\n\r\nYup, maybe bootstrap is not meant for this type of stuff but what's better than saving the developer's and designer's day ??"},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/269896991","html_url":"https://github.com/twbs/bootstrap/issues/21493#issuecomment-269896991","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/21493","id":269896991,"user":{"login":"RamanCool","id":24701432,"avatar_url":"https://avatars.githubusercontent.com/u/24701432?v=3","gravatar_id":"","url":"https://api.github.com/users/RamanCool","html_url":"https://github.com/RamanCool","followers_url":"https://api.github.com/users/RamanCool/followers","following_url":"https://api.github.com/users/RamanCool/following{/other_user}","gists_url":"https://api.github.com/users/RamanCool/gists{/gist_id}","starred_url":"https://api.github.com/users/RamanCool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RamanCool/subscriptions","organizations_url":"https://api.github.com/users/RamanCool/orgs","repos_url":"https://api.github.com/users/RamanCool/repos","events_url":"https://api.github.com/users/RamanCool/events{/privacy}","received_events_url":"https://api.github.com/users/RamanCool/received_events","type":"User","site_admin":false},"created_at":"2017-01-01T09:34:18Z","updated_at":"2017-01-01T09:34:18Z","body":"+1 , Even i face this thing daily. Would be nice if this ads to bootstrap. Less Hacky then document write. "}}
{"actor":{"display_login":"RamanCool"}}