package
2.0.2+incompatible
Repository: https://github.com/aymerick/raymond.git
Documentation: pkg.go.dev

# Functions

HelperNameStr returns the string representation of a helper name, with a boolean set to false if this is not a valid helper name.
LiteralStr returns the string representation of literal value, with a boolean set to false if this is not a literal.
NewBlockStatement instanciates a new block node.
NewBooleanLiteral instanciates a new boolean node.
NewCommentStatement instanciates a new comment node.
NewContentStatement instanciates a new content node.
NewExpression instanciates a new expression node.
NewHash instanciates a new hash node.
NewHashPair instanciates a new hash pair node.
NewMustacheStatement instanciates a new mustache node.
NewNumberLiteral instanciates a new number node.
NewPartialStatement instanciates a new partial node.
NewPathExpression instanciates a new path expression node.
NewProgram instanciates a new program node.
NewStringLiteral instanciates a new string node.
NewStrip instanciates a Strip for given open and close mustaches.
NewStripForStr instanciates a Strip for given tag.
NewSubExpression instanciates a new subexpression node.
PathExpressionStr returns the string representation of path expression value, with a boolean set to false if this is not a path expression.
Print returns a string representation of given AST, that can be used for debugging purpose.

# Constants

NodeBlock is the block statement node.
NodeBoolean is the literal boolean node.
NodeComment is the comment statement node.
NodeContent is the content statement node.
NodeExpression is the expression node.
NodeHash is the hash node.
NodeHashPair is the hash pair node.
NodeMustache is the mustache statement node.
NodeNumber is the literal number node.
NodePartial is the partial statement node.
NodePath is the expression path node.
NodeProgram is the program node.
NodeString is the literal string node.
NodeSubExpression is the subexpression node.

# Structs

BlockStatement represents a block node.
BooleanLiteral represents a boolean node.
CommentStatement represents a comment node.
ContentStatement represents a content node.
Expression represents an expression node.
Hash represents a hash node.
HashPair represents a hash pair node.
Loc represents the position of a parsed node in source file.
MustacheStatement represents a mustache node.
NumberLiteral represents a number node.
PartialStatement represents a partial node.
PathExpression represents a path expression node.
Program represents a program node.
StringLiteral represents a string node.
Strip describes node whitespace management.
SubExpression represents a subexpression node.

# Interfaces

Node is an element in the AST.
Visitor is the interface to visit an AST.

# Type aliases

NodeType represents an AST Node type.