Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DirectivePropsGetter

Analyzes a YASSB formatted HTML comment and extracts the relevant attributes and values

Hierarchy

  • DirectivePropsGetter

Index

Constructors

constructor

Properties

Private config

config: YassbConfig

the full YASSV configuration object

Private directiveFullString

directiveFullString: string

the full text of the directive previously found with a RegExp.

Private Optional lang

lang: string

Private props

Object whose keys are the attribute names found in the directive and the values the content of the attributes.

Methods

Private getOptions

  • getOptions(): void

Private matchDirectiveProps

  • matchDirectiveProps(): void
  • Matches each attribute and value in the directive without the closing quote ("). Then splits the string by =" to separate the attribute from the value. Checks if the attribute is a supported attribute. If so, adds it to the props, else throws an error in console.

    Returns void

parse

Private replaceLang

  • replaceLang(): void

Private replaceUsername

  • replaceUsername(): void