mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-17 05:04:55 +00:00
Add support for custom route file extensions.
This commit is contained in:
6
test/apps/custom-extension/src/routes/[slug].mdx
Normal file
6
test/apps/custom-extension/src/routes/[slug].mdx
Normal file
@@ -0,0 +1,6 @@
|
||||
<script>
|
||||
import { stores } from '@sapper/app';
|
||||
const { page } = stores();
|
||||
</script>
|
||||
|
||||
<h1>{$page.params.slug.toUpperCase()}</h1>
|
||||
3
test/apps/custom-extension/src/routes/_error.svelte
Normal file
3
test/apps/custom-extension/src/routes/_error.svelte
Normal file
@@ -0,0 +1,3 @@
|
||||
<h1>hi</h1>
|
||||
|
||||
<p>hi</p>
|
||||
1
test/apps/custom-extension/src/routes/a.svelte
Normal file
1
test/apps/custom-extension/src/routes/a.svelte
Normal file
@@ -0,0 +1 @@
|
||||
<h1>a</h1>
|
||||
@@ -0,0 +1 @@
|
||||
<h1>Tremendous!</h1>
|
||||
@@ -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>
|
||||
@@ -0,0 +1 @@
|
||||
<h1>Bazooom!</h1>
|
||||
Reference in New Issue
Block a user