From d72834883fbfbe84d0596c9aa306b34c6d08c707 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 28 Jul 2016 15:02:01 +0300 Subject: Adapt to butl::path refactoring --- mod/page.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'mod/page.cxx') diff --git a/mod/page.cxx b/mod/page.cxx index 2ebbe7b..79b5da5 100644 --- a/mod/page.cxx +++ b/mod/page.cxx @@ -27,12 +27,14 @@ namespace brep { // CSS_LINKS // + static const dir_path css_path ("@"); + void CSS_LINKS:: operator() (serializer& s) const { - static const path css ("@"); - - s << *LINK(REL="stylesheet", TYPE="text/css", HREF=root_ / css / path_); + s << *LINK(REL="stylesheet", + TYPE="text/css", + HREF=root_ / css_path / path_); } // DIV_HEADER @@ -146,7 +148,8 @@ namespace brep else { assert (root_ != nullptr); - s << A(HREF=*root_ / path (mime_url_encode (*package_)) / path (version_)) + s << A(HREF=*root_ / dir_path (mime_url_encode (*package_)) / + path (version_)) << version_ << ~A; } -- cgit v1.1