Documentation
    Preparing search index...

    Interface RendererOptions<State>

    Options passed to the Renderer constructor.

    interface RendererOptions<State> {
        indexDirectory: string;
        indexFileExtension?: string;
        moduleState?: State;
        rootDirectory: string;
    }

    Type Parameters

    • State

      An object that implements the State type will be passed to implementors of FuncStacheModule.

    Hierarchy (View Summary)

    Index

    Properties

    indexDirectory: string

    Path - relative to rootDirectory - to the directory that contains the funcstache module (index file) and mustache template file.

    indexFileExtension?: string

    The extension of the funcstache modules script files; if not provided it will default to "js". Useful in cases where the index files use "mjs", "cjs", or even "ts".

    moduleState?: State

    Data passed to the FuncStacheModule methods' options.state argument.

    rootDirectory: string

    Fully qualified path to the directory that contains all the funcstache modules. Attempts to read files not contained in this directory will be ignored.