Discover Packages
github.com/pnelson/tmpl
package
module
Version:
v0.0.0-...-010625d
Opens a new window with list of versions in this module.
Published: Jul 5, 2022
License: BSD-3-Clause
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
tmpl
Package tmpl implements a minimal view interface over html/template.
Use of this package encourages proper separation of concerns. Templates
are expected to be "dumb" using only the base text/template actions
and leverage methods on the view for more complex output.
Expand ▾
Collapse ▴
Documentation
¶
Package tmpl implements a minimal view interface over html/template.
Template represents a set of HTML templates.
New returns a new template set.
Render writes the result of applying the templates
associated with view to the view itself.
type Viewable interface {
Templates() []string
}
Viewable represents a view.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.