3 ms·
Yeah I suppose if you use a server-side framework you can use a templating engine to create partials for your components and have a single source of truth that
by fareesh 6y ago
Yeah I suppose if you use a server-side framework you can use a templating engine to create partials for your components and have a single source of truth that way. I was curious to know if there was a way to do it with just Vue + some build step and pre-rendering
- darekkay 6y agoNot sure about Vue, but in React the simplest thing you could do is to use ReactDOMServer.renderToStaticMarkup(). You can develop your whole "app" in React and then create a JS-less HTML output. There's also Charge [1], a React static site generator with no client-side JavaScript. [1] https://github.com/brandonweiss/charge https://github.com/brandonweiss/charge
- deleted 6y ago[deleted]