aboutsummaryrefslogtreecommitdiff
path: root/mod/page.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-07-28 15:02:01 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-07-28 15:02:01 +0300
commitd72834883fbfbe84d0596c9aa306b34c6d08c707 (patch)
tree4fd79f6a41a6086d0d35719d14eaa1aca71c25c0 /mod/page.cxx
parent915988225227ba3f300739b3655a6b4c01c3c46c (diff)
Adapt to butl::path refactoring
Diffstat (limited to 'mod/page.cxx')
-rw-r--r--mod/page.cxx11
1 files changed, 7 insertions, 4 deletions
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;
}