diff --git a/lib/templates.js b/lib/templates.js index 93274d1..15b78ee 100644 --- a/lib/templates.js +++ b/lib/templates.js @@ -38,7 +38,7 @@ function create_templates() { const start = template.indexOf('%sapper', i); if (start === -1) { - res.end(template.slice(start)); + res.end(template.slice(i)); return; }