One thing that became clear was that the amount of comments et.c. added significantly to the size of an included file. As a result, I decided to provide a method for removing this overhead, in the form of a 'cleaned' include file, stripped of comments and extraneous whitespace. A 'clean' include file would be file-suffixed '.h.js', and the 'full' version, used for code maintenance would retain the '.js' suffix. The original include code was modified to use a 'clean' include file first, if present, or, in its absence, the 'full' version.
The revised requirements for an include file are thus:
The use of this mechanism is as follows
This code should have been fairly straightforward, but issues with line-end characters caused a certain amount of
headscratching. The current code, which grabs lines one at a time, might be slower, but it more forgiving
of EOL issues. The implementation reads all the included module code into a single buffer then