* Compiles a set of nodes into a Document.
*
* Takes a set of parsed, and linked nodes, then turns it into an optimized webpage by creating the entrypoint function, of the app, and shortening the normal html content into as few nodes as possible.
*
* Params:
* nodes = The webpage nodes.
* Returns: Compiled Document that represents the webpage.
* Compiles a set of nodes into a Document. * * Takes a set of parsed, and linked nodes, then turns it into an optimized webpage by creating the entrypoint function, of the app, and shortening the normal html content into as few nodes as possible. * * Params: * nodes = The webpage nodes. * Returns: Compiled Document that represents the webpage.