News for hackers. Stuff that matters.
Re:Show HN: Single-header C++11 HTML document constructor by Negitivefrags on Sunday December 16, 2018 @06:59PM (#18696020)
You would implement that like this:

    HTML::document d;   
    HTML::p p( d );
    d.text( "Hello, " );
    {
        HTML::span s( d );
        d.text( "world!" );
    }
    d.text( " Welcome!" );

Obviously though, if you were trying to do an HTML parser as well, then my ideas are not appropriate.

There are no comments on this comment yet.