Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

We’ve been using Vue for a while now at Parq.

We initially wanted to use it as a super powered jQuery, then we ended up using Vue as an SPA for part of our app (certain route served a Vue spa to users), now we are going all into the Vue ecosystem for SPA.

I’m a fan of using Vue incrementally, but what you will find is that no editors I have found support Vue inside html templates well. When you use Vue as a jQuery replacement, it gives you some nicety, but it ends having pretty gnarly strings to put html inside of Vue components.

Vue team, if you can get editors to support your string template syntax, that would be killer. Even better, if there was a way to use single file components without the full build step (I.e. bundle up single file components the first time they are needed by a client) and inject that right into the html template that would be amazing.



Vue components are transpiled to JavaScript code when you build your app. Moving this step to client side makes your app take much longer to start. You also will need to ship the template compiler too, which is a few more kb.

https://v3.vuejs.org/guide/installation.html#runtime-compile...


Do you have an example of the problem you're describing? It sounds completely foreign to Vue to be honest, I've never encountered any issues with Vue inside HTML templates.

For only serving SFCs on request, you can use something like https://vitejs.dev/ during local dev, unless I'm misunderstanding, along with code-splitting.


just use html templates in normal html? There's no need to use strings. eg <script type="text/x-template">




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: