Skip to content

Commit

Permalink
document [x+2e]well-known pattern - closes #7659
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Nov 16, 2022
1 parent 56f2c51 commit ae56f98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation/docs/30-advanced/10-advanced-routing.md
Expand Up @@ -160,6 +160,8 @@ src/routes/🤪/+page.svelte

The format for a Unicode escape sequence is `[u+nnnn]` where `nnnn` is a valid value between `0000` and `10ffff`. (Unlike JavaScript string escaping, there's no need to use surrogate pairs to represent code points above `ffff`.) To learn more about Unicode encodings, consult [Programming with Unicode](https://unicodebook.readthedocs.io/unicode_encodings.html).

> Since TypeScript [struggles](https://github.com/microsoft/TypeScript/issues/13399) with directories with a leading `.` character, you may find it useful to encode these characters when creating e.g. [`.well-known`](https://en.wikipedia.org/wiki/Well-known_URI) routes: `src/routes/[x+2e]well-known/...`
### Advanced layouts

By default, the _layout hierarchy_ mirrors the _route hierarchy_. In some cases, that might not be what you want.
Expand Down

0 comments on commit ae56f98

Please sign in to comment.