// Tags like <img />
struct CompTag {
///
+ CompTag(std::string const & tag)
+ : tag_(tag) {}
+ ///
CompTag(std::string const & tag, std::string const & attr)
: tag_(tag), attr_(attr) {}
/// <tag_ attr_ />
XHTMLStream & operator<<(EndTag const &);
///
XHTMLStream & operator<<(CompTag const &);
+ /// A trivial struct that functions as a stream modifier.
+ /// << NextRaw() causes the next string-like thing sent to the
+ /// stream not to be escaped.
+ struct NextRaw {};
+ ///
+ XHTMLStream & operator<<(NextRaw const &);
private:
///
void clearTagDeque();
TagDeque pending_tags_;
/// remembers the history, so we can make sure we nest properly.
TagStack tag_stack_;
+ ///
+ bool nextraw_;
};
///