I'm reusing the Pier->LaTeX converter of the Pier-Book project (with some modifications related to the fact we have separate files as input and not a whole book structure). The LaTeX and HTML converters have a notion of style that let you decide what exactly you want to produce (e.g., the LaTeX convertor can produce both standalone LaTeX and Square Bracket Associates' LaTeX files). We can imagine that the HTML convertor could have 2 styles as well, one to produce a single HTML page with the whole book, and another style with one page per chapter.