Top 7.0% forks on proxy.golang.org
proxy.golang.org : github.com/golangsam/template
Package template implements the interface common to the standard packages "text/template" and "html/template" as type Template. Thus, it exploits the fact, that as said in go doc text/template and go doc html/template. All methods and all package level functions are forewarded. Instead of a single New(name) this package unsurprisingly provides two constructors: - template.Text(name) & - template.HTML(name). Note: The package level functions ParseFiles & ParseGlob became - ParseTextFiles / ParseHTMLfile resp. - ParseTextGlob / ParseHTMLglob. Thus, the exported type Template represents the template used, be it html or text. Also the type FuncMap is forwarded. Note: Clients in need to access any other type - such as ExecError (from "text/template") or - data types such as HTML, CSS, JS and friends - as well as Error and ErrorCode (from "html/template") are requested to use the respective standard package directly for access to the error and data types. For example escape_test.go uses and refers to later.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/golangsam/template
License: MIT
Latest release: about 6 years ago
First release: about 6 years ago
Namespace: github.com/golangsam
Stars: 1 on GitHub
Forks: 1 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 25 days ago