inlineAssetsFromVirtualDirectory function

VirtualDirectory inlineAssetsFromVirtualDirectory(
  1. VirtualDirectory vDir
)

Wraps a VirtualDirectory to patch the way it sends .html files.

In any .html file sent down, link and script elements that point to internal resources will have the contents of said file read, and inlined into the HTML page itself.

In this case, "internal resources" refers to a URI without a scheme, i.e. /site.css or foo/bar/baz.js.

Implementation

VirtualDirectory inlineAssetsFromVirtualDirectory(VirtualDirectory vDir) =>
    _InlineAssets(vDir);