Add support for custom route file extensions.

This commit is contained in:
pngwn
2019-04-25 00:23:34 +01:00
parent ce50c2ff98
commit e7b1aa373a
24 changed files with 346 additions and 16 deletions

View File

@@ -0,0 +1,6 @@
<script>
import { stores } from '@sapper/app';
const { page } = stores();
</script>
<h1>{$page.params.slug.toUpperCase()}</h1>

View File

@@ -0,0 +1,3 @@
<h1>hi</h1>
<p>hi</p>

View File

@@ -0,0 +1 @@
<h1>a</h1>

View File

@@ -0,0 +1 @@
<h1>Tremendous!</h1>

View File

@@ -0,0 +1,8 @@
<h1>Great success!</h1>
<a href="a">a</a>
<a href="ambiguous/ok.json">ok</a>
<a href="echo-query?message">ok</a>
<a href="echo-query?p=one&p=two">ok</a>
<div class='hydrate-test'></div>

View File

@@ -0,0 +1 @@
<h1>Bazooom!</h1>