aboutsummaryrefslogtreecommitdiff
path: root/mod/page.cxx
diff options
context:
space:
mode:
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;
}