package
Version:
v0.0.0-...-dbdc49b
Opens a new window with list of versions in this module.
Published: Mar 17, 2021
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates the view templates
type Conf struct {
Dir string `env:"RB_VIEW_DIR" envDefault:"."`
Patterns []string `env:"RB_VIEW_PATTERNS" envSeparator:":" envDefault:"*.html"`
Name string `env:"RB_VIEW_NAME" envDefault:"root"`
}
Conf configures the view
Files are on a filesystem
FromDir provides template files from an actual directory
FromEmbed creates a template files fs from an embedded filesystem
Params are parameters for view construction
Source Files
¶
Click to show internal directories.
Click to hide internal directories.