darioteixeira / lambdoc

Lambdoc is a library providing support for semantically complex documents in Ocsigen web applications
GNU General Public License v2.0
17 stars 1 forks source link

Support for splitting output into multiple HTML files #17

Open edwintorok opened 9 years ago

edwintorok commented 9 years ago

Some documents can grow quite large (books, software documentation, etc.), and it is usual to split the input/output into multiple files, while still having cross-references working correctly. Splitting the input is not really necesary as editors can handle large files these days, and can be worked around by using a preprocessor like gpp or perhaps mpp if really needed. Splitting the output is useful to improve page load times, reduce rendering stalls, reduce bandwidth usage, etc.

Lambcmd should support splitting the output into multiple files based on a configurable depth (\part,\section,\subsection, or none at all). Or -- if it is easier -- splitting based just on \part would be a good start: inserting a \part doesn't change numbering, and gives you control on where the splits happen.

darioteixeira commented 9 years ago

Let's keep this ticket open, though I'm rating this as a low priority feature, because you can always use a XML processor to split the document after the fact.