aboutsummaryrefslogtreecommitdiff
path: root/brep/page.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-10-06 12:38:11 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-10-07 18:04:44 +0200
commit08ef171b0c5b9238df9fe0b86200a8d8425dcea5 (patch)
tree50e861fe0fc156afe02229fe8e6d032b40ac8b36 /brep/page.cxx
parentba93b336890205933a57fae958c0ec6be5932ac7 (diff)
Get rid of package class
Diffstat (limited to 'brep/page.cxx')
-rw-r--r--brep/page.cxx28
1 files changed, 28 insertions, 0 deletions
diff --git a/brep/page.cxx b/brep/page.cxx
index 552be3c..b59cd4b 100644
--- a/brep/page.cxx
+++ b/brep/page.cxx
@@ -147,6 +147,34 @@ namespace brep
s << ~DIV;
}
+ // DIV_URL
+ //
+ void DIV_URL::
+ operator() (serializer& s) const
+ {
+ s << DIV(CLASS="url")
+ << A << HREF << url_ << ~HREF << url_ << ~A;
+
+ if (!url_.comment.empty ())
+ s << DIV(CLASS="comment") << url_.comment << ~DIV;
+
+ s << ~DIV;
+ }
+
+ // DIV_EMAIL
+ //
+ void DIV_EMAIL::
+ operator() (serializer& s) const
+ {
+ s << DIV(CLASS="email")
+ << A << HREF << "mailto:" << email_ << ~HREF << email_ << ~A;
+
+ if (!email_.comment.empty ())
+ s << DIV(CLASS="comment") << email_.comment << ~DIV;
+
+ s << ~DIV;
+ }
+
// DIV_TAGS
//
void DIV_TAGS::