bit-docs-process-mustache/process-mustache module

processMustache(filename, source, docMap, siteConfig, addToDocMap)

Processes a .mustache file and adds it as a template to the DocMap.

Parameters

  1. filename {String}:

    The filename with its extension.

  2. source {String}:

    A files source.

  3. docMap {DocMap}:

    A map of the name of each DocObject to the DocObject.

  4. siteConfig {Object}:

    An siteConfig object.

  5. addToDocMap {function}:

    A callback function that adds passed DocObject to DocMap.