dlang-community / harbored-mod

A documentation generator for D with support for both DDoc and Markdown.
Boost Software License 1.0
18 stars 14 forks source link

Refactor `writeXXX` to generate strings #28

Closed kiith-sa closed 9 years ago

kiith-sa commented 9 years ago

Refactor writeHeader, writeTOC, readAndWriteComment, and so on so they generate and return strings. This will allow removing the additional TOC content hack (writing/reading a temp file) and refactoring parts of that code.

9il commented 9 years ago

Whould ref Appender!string be better?

kiith-sa commented 9 years ago

Yes, it would probably result in slightly better performance than just plain string.

kiith-sa commented 9 years ago

Solved as of f9502bc766295703be6854ec2f35d6c097d9691f