yoychen / v-craft

🎨 A Toolset for Building Extensible Page Builders with Vue.js
https://yoychen.github.io/v-craft/
MIT License
304 stars 52 forks source link

exporting html #14

Open Dontorpedo opened 3 years ago

Dontorpedo commented 3 years ago

hi,

i am trying to create a invoice template builder..

i need to export / save the html to my database or file instead of json.. how can i achieve this?

thanks T

rodribeze commented 3 years ago

Also wanted to export to Html how to proceed?

yoychen commented 3 years ago

Sorry, v-craft may not be your best solution to do this feature. Because every node is controlled by Vue's life cycle. If you try to export HTML with element.innerHTML, some presentational logic may not work properly (like carousel).

If you want to build a blog-like service with v-craft, you should integrate SSR solutions like Nust.js or use Prerender to fit SEO requirement.