modulepackage
0.0.0-20240319171658-c50f1b6ba738
Repository: https://github.com/robfig/soy.git
Documentation: pkg.go.dev
# README
soy
Go implementation for Soy templates aka Google Closure Templates. See godoc for more details and usage examples.
This project requires Go 1.12 or higher due to one of the transitive
dependencies requires it as a minimum version; otherwise, Go 1.11 would
suffice for go mod
support.
Be sure to set the env var GO111MODULE=on
to use the go mod
dependency
versioning when building and testing this project.
# Packages
Package ast contains definitions for the in-memory representation of a Soy template.
Package data contains the definitions for the Soy data types.
No description provided by the author
Package parse converts a Soy template into its in-memory representation (AST).
Package parsepasses contains routines that validate or rewrite a Soy AST.
Package soyhtml renders a compiled set of Soy to HTML.
Package soyjs compiles Soy to javascript.
No description provided by the author
Package soyweb is a simple development server that serves the given template.
Package template provides convenient access to groups of parsed Soy files.
# Functions
NewBundle returns an empty bundle.
ParseGlobals parses the given input, expecting the form: <global_name> = <primitive_data>
Furthermore: - Empty lines and lines beginning with '//' are ignored.
# Variables
Logger is used to print notifications and compile errors when using the "WatchFiles" feature.