Mercurial > piecrust2
annotate tests/bakes/test_special_root.yaml @ 568:6b6c5442c790
bug: Correctly handle root URLs with special characters.
The `site/root` setting is now pre-escaped to get a correct URL, and routing
excludes it from escaping.
Add unit tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 13 Oct 2015 22:50:38 -0700 |
parents | |
children | 45ad976712ec |
rev | line source |
---|---|
568
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
1 --- |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
2 config: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
3 site: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
4 root: /~john/public/ |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
5 in: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
6 pages/about.md: 'URL: {{page.url}}, LINK: {{pcurl("missing")}}' |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
7 pages/_index.md: 'URL: {{page.url}}' |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
8 out: |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
9 about.html: 'URL: /%7Ejohn/public/about.html, LINK: /%7Ejohn/public/missing.html' |
6b6c5442c790
bug: Correctly handle root URLs with special characters.
Ludovic Chabant <ludovic@chabant.com>
parents:
diff
changeset
|
10 index.html: 'URL: /%7Ejohn/public/' |