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
willAccept()
willAccept: (ctx
) => Awaitable
<boolean
>
Whether the parser can handle the given tag.
Parameters
• ctx: Context
The context of the tag.
Returns
Awaitable
<boolean
>