Documentation ¶
Index ¶
- Constants
- Variables
- func InitData(checkDotEnv bool, files ...string) (err error)
- func ParseENV(file string) (err error)
- func ParseINI(file string) (err error)
- func ParseJSON(file string) (err error)
- func ParseTOML(file string) (err error)
- func ParseYAML(file string) (err error)
- func Reinitialize(debug int)
- func Render(template string) (output string, err error)
- func RenderToFile(filename, template string) (output string, err error)
Constants ¶
View Source
const ( // Name denotes the library name Name = "Templar" // Version denotes the library version Version = "0.2.0" )
* LIB CONSTANTS
View Source
const ( DebugOff = 0 DebugError = 1 DebugWarn = 2 DebugInfo = 3 DebugLog = 4 )
* CONSTANTS
Variables ¶
View Source
var Data struct { INIFile []string JSONFile []string Template string }
Data is a collection for all external data
View Source
var (
Debug = DebugWarn
)
* VARIABLES
Functions ¶
func RenderToFile ¶
RenderToFile handles rendering templates to file
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.