diff --git a/.eslintignore b/.eslintignore
new file mode 100644
index 0000000..1d338c1
--- /dev/null
+++ b/.eslintignore
@@ -0,0 +1,4 @@
+node_modules
+__build__
+dist
+
diff --git a/examples/_static/index.html b/examples/_static/index.html
index c9c923a..6624075 100644
--- a/examples/_static/index.html
+++ b/examples/_static/index.html
@@ -10,8 +10,8 @@
-
SSR
+ Usage with multiple apps
+ SSR
Usage with vue-router
',
+ { tag: 'link', rel: 'stylesheet', href: 'style.css' }
+ ],
+ otherNoscript: {
+ tag: 'noscript',
+ 'data-test': 'hello',
+ content: [
+ '',
+ { tag: 'link', rel: 'stylesheet', href: 'style2.css' }
+ ]
+ },
+ body: 'body-script1.js',
+ script: [
+ '
+
+
+
+ Inspect Element to see the meta info
+
+ `
+}
+
const router = createRouter({
history: createWebHistory('/vue-router'),
routes: [
@@ -90,45 +139,27 @@ const router = createRouter({
]
})
-const Metadata = {
- template: `
-
-
-
-
-
-
-
- `
-}
-
-const App = {
- template: `
-
- My Title
-
-
-
-
-
-
-
-
-
vue-router
-
Home
-
About
-
-
-
-
Inspect Element to see the meta info
-
- `
-}
+const meta = createMeta({
+ config: {
+ esi: {
+ group: true,
+ namespaced: true,
+ contentAttributes: [
+ 'src',
+ 'test',
+ 'text'
+ ]
+ }
+ }
+})
const app = createApp(App)
-app.component('metainfo', Metadata)
+app.component('metainfo', Metainfo)
app.use(router)
app.use(meta)
+app.mount('#app')
+
+// old stuff:
/*
const { set, remove } = app.$meta().addApp('custom')
@@ -142,8 +173,6 @@ set({
})
setTimeout(() => remove(), 3000)
*/
-app.mount('#app')
-
/*
const waitFor = time => new Promise(r => setTimeout(r, time || 1000))
const o = {
diff --git a/examples/vue-router/index.html b/examples/vue-router/index.html
index 7d68002..0e28e69 100644
--- a/examples/vue-router/index.html
+++ b/examples/vue-router/index.html
@@ -14,6 +14,7 @@
← Examples index
+