Hierarchy

  • Configuration

Constructors

Properties

#finderLayout: ((fnlayout: any) => Promise<string>)

Type declaration

    • (fnlayout: any): Promise<string>
    • Parameters

      • fnlayout: any

      Returns Promise<string>

#finderLayoutSync: ((fnlayout: any) => string)

Type declaration

    • (fnlayout: any): string
    • Parameters

      • fnlayout: any

      Returns string

#finderPartial: ((fnpartial: any) => Promise<string>)

Type declaration

    • (fnpartial: any): Promise<string>
    • Parameters

      • fnpartial: any

      Returns Promise<string>

#finderPartialSync: ((fnpartial: any) => string)

Type declaration

    • (fnpartial: any): string
    • Parameters

      • fnpartial: any

      Returns string

#layoutDirs: any
#partial: ((fname: string, metadata: any) => Promise<string>)

Type declaration

    • (fname: string, metadata: any): Promise<string>
    • Parameters

      • fname: string
      • metadata: any

      Returns Promise<string>

#partialDirs: any
#partialSync: ((fname: string, metadata: any) => string)

Type declaration

    • (fname: string, metadata: any): string
    • Parameters

      • fname: string
      • metadata: any

      Returns string

#renderers: any

Accessors

  • get layoutDirs(): string[]
  • Returns string[]

  • set layoutDirs(dirz: string[]): void
  • An array of absolute paths to directories containing layout templates.

    Parameters

    • dirz: string[]

    Returns void

  • set layoutFinder(finder: ((fnlayout: any) => Promise<string>)): void
  • Store a function for finding layout templates

    Parameters

    • finder: ((fnlayout: any) => Promise<string>)
        • (fnlayout: any): Promise<string>
        • Parameters

          • fnlayout: any

          Returns Promise<string>

    Returns void

  • set layoutFinderSync(finder: ((fnlayout: any) => string)): void
  • Store a function for finding layout templates

    Parameters

    • finder: ((fnlayout: any) => string)
        • (fnlayout: any): string
        • Parameters

          • fnlayout: any

          Returns string

    Returns void

  • get partialDirs(): string[]
  • Returns string[]

  • set partialDirs(dirz: string[]): void
  • An array of absolute paths to directories containing partial templates.

    Parameters

    • dirz: string[]

    Returns void

  • set partialFinder(finder: ((fnpartial: any) => Promise<string>)): void
  • Store a function for finding partial templates.

    Parameters

    • finder: ((fnpartial: any) => Promise<string>)
        • (fnpartial: any): Promise<string>
        • Parameters

          • fnpartial: any

          Returns Promise<string>

    Returns void

  • set partialFinderSync(finder: ((fnpartial: any) => string)): void
  • Store a function for finding partial templates.

    Parameters

    • finder: ((fnpartial: any) => string)
        • (fnpartial: any): string
        • Parameters

          • fnpartial: any

          Returns string

    Returns void

  • set partialFunc(pfunc: ((fname: string, metadata: any) => Promise<string>)): void
  • Parameters

    • pfunc: ((fname: string, metadata: any) => Promise<string>)
        • (fname: string, metadata: any): Promise<string>
        • Parameters

          • fname: string
          • metadata: any

          Returns Promise<string>

    Returns void

  • set partialFuncSync(pfunc: ((fname: string, metadata: any) => string)): void
  • Parameters

    • pfunc: ((fname: string, metadata: any) => string)
        • (fname: string, metadata: any): string
        • Parameters

          • fname: string
          • metadata: any

          Returns string

    Returns void

Methods

  • Add an absolute pathname for a directory to find layout templates.

    Parameters

    • dir: string

    Returns void

  • Add an absolute pathname for a directory to find partial templates.

    Parameters

    • dir: string

    Returns void

  • Find a layout template, supporting asynchronous execution

    Returns

    Parameters

    • fnlayout: string

    Returns Promise<string>

  • Find a layout template, supporting synchronous execution

    Returns

    Parameters

    • fnlayout: string

    Returns string

  • Parameters

    • fnpartial: string

    Returns Promise<string>

  • Parameters

    • fnpartial: string

    Returns string

  • Parameters

    • fname: string
    • metadata: any

    Returns Promise<string>

  • Parameters

    • fname: string
    • metadata: any

    Returns string

  • Returns void

  • Allow an application to override one of the built-in renderers that are initialized below. The inspiration is epubtools that must write HTML files with an .xhtml extension. Therefore it can subclass EJSRenderer etc with implementations that force the file name to be .xhtml. We're not checking if the renderer name is already there in case epubtools must use the same renderer name.

    Parameters

    Returns void