2.7.0
☀️ gomplate's big fancy summer release! ✨😎
v2.7.0 (2018-07-27)
Release Notes
New features and changes
- Datasources can now be defined dynamically (#357) - see
datasourcedocs for details- instead of giving
datasourcean alias, you can provide a URL directly - useful for building new datasource URLs on the fly
- instead of giving
conv.Hascan search arrays now- Template errors now produce much less output (#362)
New functions
- New functions:
defineDatasource- for defining datasources inside templates (but overridable with the
--datasource/-dflag)
- for defining datasources inside templates (but overridable with the
strings.Sortconv.ToBool,conv.ToBoolsconv.ToStrings
New namespaces
filepath, for manipulating local filesystem pathsfilepath.Base,filepath.Clean,filepath.Dir,filepath.Ext,filepath.FromSlash,filepath.IsAbs,filepath.Join,filepath.Match,filepath.Rel,filepath.Split,filepath.ToSlash,filepath.VolumeName
path, for manipulating slash-based paths (such as URLs)path.Base,path.Clean,path.Dir,path.Ext,path.IsAbs,path.Join,path.Match,path.Split
test, helpers for validating assumptions and can cause template generation to failtest.Fail,test.Assert