From 08ef171b0c5b9238df9fe0b86200a8d8425dcea5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 6 Oct 2015 12:38:11 +0200 Subject: Get rid of package class --- brep/page.cxx | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'brep/page.cxx') 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:: -- cgit v1.1