BackgroundClass TextGenerator

The TextGenerator finds output expressions in text nodesof a template and can be used to compile them for view.

Hierarchy

  • TextGenerator

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters
    • textNode: Node
    Returns TextGenerator

Properties

node

node:Node

The node to clone from.

parts

parts:object[]

A list of parts that make up the text content.

Methods

compile

Private parseText

  • parseText(text: string): void
  • Parses text content to find output expressions.

    Parameters
    • text: string
    Returns void