Add svelte as a view engine to swaf #33
@ -7,7 +7,7 @@
|
|||||||
<script type="module" defer>
|
<script type="module" defer>
|
||||||
import View from '/js/views/%canonicalViewName%.js';
|
import View from '/js/views/%canonicalViewName%.js';
|
||||||
import * as stores from '/js/stores.js';
|
import * as stores from '/js/stores.js';
|
||||||
const localStore = stores[Object.keys(stores)[0]].locals;
|
const localStore = stores.s.locals;
|
||||||
|
|
||||||
const localMap = %locals%;
|
const localMap = %locals%;
|
||||||
localStore.set((key, args) => {
|
localStore.set((key, args) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user