my concern also, the subsection thing just doesnt scale well, as
there's not really a useful "typical" section depth, and making a
arbitrary maximum depth in the specification is... arbitrary. Plus, if
you move code around, you may have to go through and correct all the
section levels. While best practices might dictate that a depth of
more than 2 or 3 section levels probably warrant a new stylesheet,
there are lots of times that's not desirable, or possible.
if you add an @end (explicitly end a block, which is implicitly means
end the @section) you get nesting for free (from the specification
point of view), as any new @section tag without an interceding @end
tag becomes a child section. That's kind of nice, but you lose
something in the ease of use, where each section docblock now must be
paired with an ending docblock to avoid unwanted nesting.
If its a toss-up between the 2, I guess I'd go with the @end (or
@endsection, or @sectionend even), but I'd love to hear other ideas.
Enjoying using cssdoc on a 2nd project, and hoping to port and publish
our parser and viewer sometime soon.
yes, i would like to have some more ideas there as well because it
does not feel like this is having it in full.
i must say that subsection works quite well in practice. it is easy to
use even when i look conceptually at it it looks like having the said
flaws.
so it might be adviseable that current cssdoc users just give feedback
about their usage of the subsections.
Tom