{"action":"created","issue":{"url":"https://api.github.com/repos/vuejs/vue/issues/2765","repository_url":"https://api.github.com/repos/vuejs/vue","labels_url":"https://api.github.com/repos/vuejs/vue/issues/2765/labels{/name}","comments_url":"https://api.github.com/repos/vuejs/vue/issues/2765/comments","events_url":"https://api.github.com/repos/vuejs/vue/issues/2765/events","html_url":"https://github.com/vuejs/vue/issues/2765","id":151650165,"number":2765,"title":"[Suggestion] [2.0] - Inline Templates","user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/vuejs/vue/labels/discussion","name":"discussion","color":"d4c5f9"},{"url":"https://api.github.com/repos/vuejs/vue/labels/feature%20request","name":"feature request","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-04-28T14:06:32Z","updated_at":"2016-04-28T15:02:56Z","closed_at":null,"body":"Is there a deeper technical reason for why inline-template can't be supported in Vue 2.0? A couple reasons for my interest. First, it makes it easy to get people attracted to Vue when we can demo some component stuff quickly using simple `inline-template` syntax for a component on a single page without having to do any ES6 compilation or anything like that. Secondly, it makes user experience (as in customer end-users) better because I don't get any weird flashes where stuff is loading behind the scenes.\r\n\r\nI recently used it extensively to build [Laravel Spark](https://spark.laravel.com) where I can use inline templates which allow me to export the \"HTML\" files into a vendor directory that purchasers of the scaffolding can easily edit without having to worry about JS compilation, etc. and can basically act like they are typical HTML pages.\r\n\r\nI know it might not be the most \"technically correct\" approach in the eyes of more elite JS developers, but just speaking as a common person, it was fairly useful in several situations.\r\n\r\nWas curious if there was some deep technical reason for why the syntax can't work with the other new Vue 2.0 stuff or if was being removed only for the reason that it's considered \"bad practice\" among some developers?"},"comment":{"url":"https://api.github.com/repos/vuejs/vue/issues/comments/215454989","html_url":"https://github.com/vuejs/vue/issues/2765#issuecomment-215454989","issue_url":"https://api.github.com/repos/vuejs/vue/issues/2765","id":215454989,"user":{"login":"taylorotwell","id":463230,"avatar_url":"https://avatars.githubusercontent.com/u/463230?v=3","gravatar_id":"","url":"https://api.github.com/users/taylorotwell","html_url":"https://github.com/taylorotwell","followers_url":"https://api.github.com/users/taylorotwell/followers","following_url":"https://api.github.com/users/taylorotwell/following{/other_user}","gists_url":"https://api.github.com/users/taylorotwell/gists{/gist_id}","starred_url":"https://api.github.com/users/taylorotwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taylorotwell/subscriptions","organizations_url":"https://api.github.com/users/taylorotwell/orgs","repos_url":"https://api.github.com/users/taylorotwell/repos","events_url":"https://api.github.com/users/taylorotwell/events{/privacy}","received_events_url":"https://api.github.com/users/taylorotwell/received_events","type":"User","site_admin":false},"created_at":"2016-04-28T15:02:56Z","updated_at":"2016-04-28T15:02:56Z","body":"@phroggyy that's not quite the same convenience or functionality as pure inline templates."}}