Mercurial > piecrust2
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/bakes/test_special_root.yaml Tue Oct 13 22:50:38 2015 -0700 @@ -0,0 +1,10 @@ +--- +config: + site: + root: /~john/public/ +in: + pages/about.md: 'URL: {{page.url}}, LINK: {{pcurl("missing")}}' + pages/_index.md: 'URL: {{page.url}}' +out: + about.html: 'URL: /%7Ejohn/public/about.html, LINK: /%7Ejohn/public/missing.html' + index.html: 'URL: /%7Ejohn/public/'