templ

package module
v0.0.0-...-90c6296 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 3

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

Documentation

Overview

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`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFile

func ParseFile(infile string, params map[string]string) (parsed string)

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

func ParseStr

func ParseStr(str string, params map[string]string) (parsed string)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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