]> git.r.bdr.sh - rbdr/prompt/blame - src/routes/[locale]/[terms].svelte
Pass public path variable
[rbdr/prompt] / src / routes / [locale] / [terms].svelte
CommitLineData
38431710
RBR
1<script context="module">
2 export async function load({ page }) {
3 return {
4 props: {
5 terms: page.params.terms
6 }
7 }
8 }
9</script>
10<script>
11 import Prompt from '$lib/components/prompt.svelte';
12 export let terms;
13</script>
14
156fa16e
RBR
15<svelte:head>
16 <title>{terms} - prompt @ unlimited.pizza</title>
17 <meta name="description" content="Your writing prompt is: {terms}" />
18</svelte:head>
19
38431710 20<Prompt terms={terms} />