Options
All
  • Public
  • Public/Protected
  • All
Menu

Invokes built-in and custom directives in the order they are found in the respective Array stores.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected config

config: YassbConfig

Full config options

Private data

data: {}

Object to store any Front Matter data processed by each the directive

Type declaration

  • [key: string]: string

Protected directiveFullString

directiveFullString: string

Directive full string found in the file

Protected fileContents

fileContents: string

File contents there the yassb directive was found

Protected fileFullPath

fileFullPath: string

Full path to the file being processed

Protected lang

lang: string

Lang being processed

Methods

Private checkIfDirectiveInvoked

Private doInvoke

Private elaborateDirectiveResponse

  • elaborateDirectiveResponse(html: string, data: {}): void
  • Elaborates the directive response by updating the file contents and adding Front Matter data to the data store.

    Parameters

    • html: string

      the new contents of the file after the directive has been executed.

    • data: {}

      any Front Matter data found in the file, to be stored so it's passed to DirectivesParser and saved on the file for later use.

      • [key: string]: string

    Returns void

init