FranckFreiburger / http-vue-loader

load .vue files from your html/js
MIT License
1.48k stars 273 forks source link

Added support for data-urls, text-scheme and inline SFCs #112

Open terraloader opened 4 years ago

terraloader commented 4 years ago

Added support for data-urls:

Added support for text-scheme:

Data-URLs and Text-Method are really useful when you dont want to make extra web requests because you already have the complete content of a vue sfc.

I use this in combination with PHP to pre-include all needed components. This is much more useful than only including a local "text/x-template" because a full vue component SFC can also have scripts and styles.

Toilal commented 3 years ago

@FranckFreiburger Do you plan to merge this pull request ?

Toilal commented 3 years ago

This could be used to implement a live component editor playground (code on left, rendered component on right).

Toilal commented 3 years ago

Well, now vue3-sfc-loader is there, maybe it makes much sense to make it support vue2 ...