parse

package
v0.0.0-...-c50f1b6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 11 Imported by: 3

Documentation

Overview

Package parse converts a Soy template into its in-memory representation (AST)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expr

func Expr(str string) (node ast.Node, err error)

Expr returns the parsed representation of the given Soy expression. An expression is basically anything that you can put inside a print tag. For example, string, list or map literals, arithmetic, boolean operations, etc.

func SoyFile

func SoyFile(name, text string) (node *ast.SoyFileNode, err error)

SoyFile parses the input into a SoyFileNode (the AST). The result may be used as input to a Soy backend to generate HTML or JS.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL