Add svelte as a view engine to swaf #33

Merged
ashpie merged 97 commits from svelte into develop 2021-11-09 19:31:22 +01:00
Showing only changes of commit 4d2dda3615 - Show all commits

View File

@ -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) => {