SimpleVariables configures the parser to allow for key-value pairs to declare a variable name and expression. For example: variables: - foo: bar - baz: qux This is in contrast to the default behavior, which requires the following syntax: variables: - name: foo expression: bar
()
| 538 | // - name: baz |
| 539 | // expression: qux |
| 540 | func SimpleVariables() ParserOption { |
| 541 | return func(p *Parser) (*Parser, error) { |
| 542 | p.inlineStyleVariables = true |
| 543 | return p, nil |
| 544 | } |
| 545 | } |
| 546 | |
| 547 | // CustomTagVisitor configures the parser to use the given TagVisitor for handling custom tags. |
| 548 | func CustomTagVisitor(visitor TagVisitor) ParserOption { |
no outgoing calls