☀️ 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
datasource
docs for details- instead of giving
datasource
an alias, you can provide a URL directly - useful for building new datasource URLs on the fly
- instead of giving
conv.Has
can 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
/-d
flag)
- for defining datasources inside templates (but overridable with the
strings.Sort
conv.ToBool
,conv.ToBools
conv.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