github hairyhenderson/gomplate v2.7.0
2.7.0

latest releases: v4.2.0, v4.1.0, v4.0.1...
6 years ago

☀️ gomplate's big fancy summer release! ✨😎

v2.7.0 (2018-07-27)

Full Changelog

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
  • conv.Has can search arrays now
  • Template errors now produce much less output (#362)

New functions

New namespaces

  • filepath, for manipulating local filesystem paths
    • filepath.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 fail
    • test.Fail, test.Assert

Don't miss a new gomplate release

NewReleases is sending notifications on new releases.