Tagscript

tagscript


Class: FunctionTransformer

Defined in: Transformer/Function.ts:6

Transformers are used to transform a value based on the tag at runtime.

Implements

Constructors

new FunctionTransformer()

new FunctionTransformer(fn): FunctionTransformer

Defined in: Transformer/Function.ts:9

Parameters

fn

TransformerFunction

Returns

FunctionTransformer

Methods

transform()

transform(tag): string

Defined in: Transformer/Function.ts:13

Transforms the given tag.

Parameters

tag

Lexer

The tag that triggered the transformer.

Returns

string

Implementation of

ITransformer.transform

On this page