Mercurial > piecrust2
diff piecrust/data/assetor.py @ 290:9f3fc17e71e1
data: Temporary hack for asset URLs.
author | Ludovic Chabant <ludovic@chabant.com> |
---|---|
date | Thu, 05 Mar 2015 01:11:43 -0800 |
parents | 0445a2232de7 |
children | 422052d2e978 |
line wrap: on
line diff
--- a/piecrust/data/assetor.py Thu Mar 05 00:27:01 2015 -0800 +++ b/piecrust/data/assetor.py Thu Mar 05 01:11:43 2015 -0800 @@ -26,7 +26,9 @@ { '%path%': rel_assets_path, '%uri%': uri}) - return base_url.rstrip('/') + '/' + # TEMP HACK + # TODO: looks like we can get here with differently formatted URLs... :( + return app.config.get('site/root') + base_url.strip('/') + '/' class Assetor(object):