Skip to content
This repository was archived by the owner on Oct 13, 2022. It is now read-only.

Commit 2be3c09

Browse files
committed
update docs for svelte v2
1 parent d4121d0 commit 2be3c09

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/guide/02-routing.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The filename determines the route. For example, `routes/index.html` is the root
1313

1414
```html
1515
<!-- routes/index.html -->
16-
<:Head>
16+
<svelte:head>
1717
<title>Welcome</title>
18-
</:Head>
18+
</svelte:head>
1919

2020
<h1>Hello and welcome to my site!</h1>
2121
```
@@ -24,9 +24,9 @@ A file called either `routes/about.html` or `routes/about/index.html` would corr
2424

2525
```html
2626
<!-- routes/about.html -->
27-
<:Head>
27+
<svelte:head>
2828
<title>About</title>
29-
</:Head>
29+
</svelte:head>
3030

3131
<h1>About this site</h1>
3232
<p>TODO...</p>
@@ -36,14 +36,14 @@ Dynamic parameters are encoded using `[brackets]`. For example, here's how you c
3636

3737
```html
3838
<!-- routes/blog/[slug].html -->
39-
<:Head>
40-
<title>{{post.title}}</title>
41-
</:Head>
39+
<svelte:head>
40+
<title>{post.title}</title>
41+
</svelte:head>
4242

43-
<h1>{{post.title}}</h1>
43+
<h1>{post.title}</h1>
4444

4545
<div class='content'>
46-
{{{post.html}}}
46+
{@html post.html}
4747
</div>
4848

4949
<script>

0 commit comments

Comments
 (0)