Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderersCaller<T>

Calls renderers to generate formatted contents

Type parameters

  • T

Hierarchy

  • RenderersCaller

Index

Constructors

constructor

  • new RenderersCaller(fileFullPath: string, directiveFullString: string, dataSource: T, config: YassbConfig, lang: string, renderer: string, options: Object): RenderersCaller
  • Creates an instance of renderers caller. It must receive all the params needed by RenderersCaller itself, plus those to be passed to renderers.

    Parameters

    • fileFullPath: string

      full path of the file being processed.

    • directiveFullString: string

      full string of the directive that has invoked the directive and then the renderer.

    • dataSource: T

      the data to be passed to the rendere to generate the contents.

    • config: YassbConfig

      the full YASSB config file.

    • lang: string

      the current language being processed.

    • renderer: string

      the name of the renderer to be called as specified in the directive being executed.

    • options: Object

      the options defined in the directive.

    Returns RenderersCaller

Properties

Private config

config: YassbConfig

the full YASSB config file.

Private dataSource

dataSource: T

the data to be passed to the rendere to generate the contents.

Private directiveFullString

directiveFullString: string

full string of the directive that has invoked the directive and then the renderer.

Private fileFullPath

fileFullPath: string

full path of the file being processed.

Private lang

lang: string

the current language being processed.

Private options

options: Object

the options defined in the directive.

Private renderer

renderer: string

the name of the renderer to be called as specified in the directive being executed.

Methods

callRenderer

  • callRenderer(): string