Categorygithub.com/moledoc/templ
modulepackage
0.0.0-20220310130719-90c6296f49fe
Repository: https://github.com/moledoc/templ.git
Documentation: pkg.go.dev

# README

templ

package templ // import "github.com/moledoc/templ"

Package templ implements tools to parse a string or file template, where parameters inside ${} are substituted with given values. Substitution values must be provided via a map.

FUNCTIONS

func ParseFile(infile string, params map[string]string) (parsed string) ParseFile is a function, that parses given file template with given parameters.

func ParseStr(str string, params map[string]string) (parsed string) ParseFile is a function, that parses given string template with given parameters.

Author

Meelis Utt

# Functions

ParseFile is a function, that parses given file template with given parameters.
ParseFile is a function, that parses given string template with given parameters.