Mercurial > piecrust2
diff piecrust/rendering.py @ 329:422052d2e978
internal: Try handling URLs in a consistent way.
* Now URLs passed to, and returned from, routes will always be absolute URLs,
i.e. URLs including the site root.
* Validate the site root at config loading time to make sure it starts and ends
with a slash.
* Get rid of unused stuff.
* Add tests.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Tue, 31 Mar 2015 23:03:28 -0700 |
parents | 65e6d72f3877 |
children | b034f6f15e22 |
line wrap: on
line diff
--- a/piecrust/rendering.py Tue Mar 31 22:38:56 2015 -0700 +++ b/piecrust/rendering.py Tue Mar 31 23:03:28 2015 -0700 @@ -8,7 +8,6 @@ page_value_accessor) from piecrust.sources.base import PageSource from piecrust.templating.base import TemplateNotFoundError, TemplatingError -from piecrust.uriutil import get_slug logger = logging.getLogger(__name__) @@ -66,10 +65,6 @@ return self.page.app @property - def slug(self): - return get_slug(self.page.app, self.uri) - - @property def source_metadata(self): return self.page.source_metadata