mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-13 11:35:28 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
727782aca2 | ||
|
|
b6f789e50c |
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "sapper",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"description": "Combat-ready apps, engineered by Svelte",
|
||||
"main": "connect.js",
|
||||
"directories": {
|
||||
|
||||
@@ -15,7 +15,8 @@ module.exports = function create_app(routes, dest, matchers, dev) {
|
||||
|
||||
return `
|
||||
if (${condition}) {
|
||||
import('../routes/${matcher.file}').then(render);
|
||||
// TODO set params, if applicable
|
||||
import('${routes}/${matcher.file}').then(render);
|
||||
}
|
||||
`.replace(/^\t{3}/gm, '').trim();
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user