Tagscript

Interface: IParser

Parsers are used to parse a tag and return a value based on the tag.

Properties

parse()

parse: (ctx) => Awaitable<null | string>

Parses the given tag.

Parameters

ctx: Context

The context of the tag.

Returns

Awaitable<null | string>

Defined in

interfaces/index.ts:25


willAccept()

willAccept: (ctx) => Awaitable<boolean>

Whether the parser can handle the given tag.

Parameters

ctx: Context

The context of the tag.

Returns

Awaitable<boolean>

Defined in

interfaces/index.ts:31

On this page