jekyll-svelte-slabs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jekyll-svelte-slabs.rb +3 -2
- data/lib/jekyll-svelte-slabs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39eed3c72957a11917dd1a11c1ca18fa8ddcd94e4226ee917cef81891bcf5bfd
|
4
|
+
data.tar.gz: 657bdf15735eb1e37edd604688e839d5b72da30f7053f43ed12fe8df472884f5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dbac3dc1d0aabc4507ed641984e4813f6bf97fe7d4009f806fc1b26879e77efe21fe7c3d8d65ad049780fa9df84dd4f245f45b6e19ceee22c7dee9d31d0dc9e6
|
7
|
+
data.tar.gz: 91892c74507558e3fc24af3fd39827c91f49d15f50a6d8b4950376d70b8549fe366171e4376a2d780ce3506fa01fad8bc3fd3b03fa999d4bdd9dc816a6d12c87
|
data/lib/jekyll-svelte-slabs.rb
CHANGED
@@ -109,7 +109,8 @@ module JekyllSvelteSlabs
|
|
109
109
|
|
110
110
|
<<~MSG
|
111
111
|
<script>
|
112
|
-
window
|
112
|
+
window.svelteSlabs = window.svelteSlabs || {};
|
113
|
+
window.svelteSlabs["#{endpoint}"] = #{svelte_data};
|
113
114
|
</script>
|
114
115
|
<div data-svelte-slab="#{file}" data-svelte-slab-props="window:#{endpoint}">
|
115
116
|
#{text}
|
@@ -121,4 +122,4 @@ module JekyllSvelteSlabs
|
|
121
122
|
|
122
123
|
end
|
123
124
|
|
124
|
-
Liquid::Template.register_tag("svelte",
|
125
|
+
Liquid::Template.register_tag("svelte", JekyllSvelteSlabs::Tag)
|