mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-22 07:05:24 +00:00
overhaul tests
This commit is contained in:
11
test/apps/export/src/routes/blog/[slug].html
Normal file
11
test/apps/export/src/routes/blog/[slug].html
Normal file
@@ -0,0 +1,11 @@
|
||||
<h1>{post.title}</h1>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
preload({ params }) {
|
||||
return this.fetch(`blog/${params.slug}.json`).then(r => r.json()).then(post => {
|
||||
return { post };
|
||||
});
|
||||
}
|
||||
};
|
||||
</script>
|
||||
Reference in New Issue
Block a user