Skip to content

Releases: hairyhenderson/gomplate

v3.6.0

16 Nov 03:04
v3.6.0
564f558
Compare
Choose a tag to compare

A big release after a bit of a hiatus. 😅

Big new features include plugin support and 3 new datasources (AWS S3, Google Cloud Storage, and Git!).

Also for those who are using the hairyhenderson/gomplate
Docker images, there are some new tags which will make it easier to stay up to date!

v3.6.0 (2019-11-15)

Full Changelog

Release Notes

New features and changes

  • #625 New s3 datasource for reading datasources from AWS S3. See the docs for full information.

  • #632 New gs datasource for reading datasources from Google Cloud Storage. See the docs for full information.

  • #661 New git datasource! Supports git over HTTP(s), SSH, the "classic" Git protocol, and repos on local filesystems. See the docs for full information.

  • #581 New --exec-pipe flag - allows piping output directly into a post-execution command

  • #586 New --include flag (opposite of --exclude)

  • #635 With the new --plugin/-p flag you can plug in your own custom functions!

  • #683 When parsing a YAML stream with multiple documents (separated with ---), gomplate will now return the first non-empty document

  • #651 New stable and major (v3) docker image tags - (fixes #648) thanks to @docwhat

    • New Docker image tags available stable, v3, stable-slim, v3-slim, stable-alpine, v3-alpine
  • #598 and #677 Moved to go modules. As a result, if you import gomplate into your own code, your import paths need to change to github.com/hairyhenderson/gomplate/v3

New functions

Bug fixes

  • #617 Fix example in docs for coll.Uniq
  • #623 Fix parsing of media types with + character
  • #641 Fix markdown rendering in docs - thanks to @Ilyes512 for this one!
  • #673 Fix bug where subpath was ignored when inferring MIME type (fixes #672)

v3.5.0

01 Jun 14:58
v3.5.0
fd00d0f
Compare
Choose a tag to compare

A small but mighty release, almost entirely powered by the community! 💪

The major features this time around are support for a AWS Secrets Manager data source, and list support for Consul data sources!

v3.5.0 (2019-06-01)

Full Changelog

Release Notes

New features and changes

v3.4.1

07 May 00:57
v3.4.1
20937be
Compare
Choose a tag to compare

A tiny bug-fix release... 🐛

v3.4.1 (2019-05-06)

Full Changelog

Release Notes

Bug fixes

  • #543 Fixing file-mode inheritance bug (Fixes #542)

v3.4.0

10 Apr 01:36
v3.4.0
acc5141
Compare
Choose a tag to compare

In this release we've got some spring cleaning, 20 new functions, and a new way to dynamically name output files! 🚀🌷✨

Also, a new website is up at https://gomplate.ca, and the docs have moved to https://docs.gomplate.ca 📖

There's also now a #gomplate Slack channel on the Gophers Slack instance. Get invited by going to https://invite.slack.golangbridge.org, then join #gomplate and chat with the community and developers.

v3.4.0 (2019-04-09)

Full Changelog

Release Notes

New features and changes

  • #529 Adding new --output-map argument for templating output paths (see docs for details)
  • #521 Adding another way to install gomplate - with npm: npm install -g gomplate

New functions

Bug fixes

  • #507 & #527 Fixed loads of outstanding Windows bugs - plus adding more Windows-specific tests!
  • #533 Fixing merge behaviour for booleans
  • #513 Fixing file.Write's behaviour - it now truncates existing files as expected

v3.3.1

09 Mar 20:16
v3.3.1
Compare
Choose a tag to compare

Just a bug-fix release... 🐛

v3.3.1 (2019-03-09)

Full Changelog

Release Notes

Bug fixes

  • #510 Fix .env file parsing so merging works properly (Fixes #509)

v3.3.0

03 Mar 22:21
v3.3.0
5c27e1e
Compare
Choose a tag to compare

A smaller relase this time, almost entirely full of new functions. An exciting new use-case is that a single template can now produce multiple outputs (with file.Write)! 🚀

v3.3.0 (2019-03-03)

Full Changelog

Release Notes

New features and changes

  • #497 docs: generating rest of string functions from YAML source
  • #501 docs: YAMLifying the rest of the function docs, improving the doc template
  • #506 Upgrading Go & Dockerfile dependencies

New functions

v3.2.0

08 Feb 04:22
v3.2.0
8a13b82
Compare
Choose a tag to compare

There's lots of ✨ in this first release of 2019! 🎉🎊

Now, you can ignore files, merge datasources, and use .env files as datasoures. Also, you can do a whole pile of new things with lists and maps with the functions in the new coll namespace! See below for details...

v3.2.0 (2019-02-07)

Full Changelog

Release Notes

New features and changes

  • #450 Documented newline suppression (@carlosonunez)
  • #225 Add .gomplateignore support (@zealic)
    • An extension to the --exclude flag, allows ignoring certain files when processing directories with the --input-dir argument. Works just like the .gitignore file
  • #477 New merge: datasource, for merging multiple datasources
  • #481 Adding support for .env files
    • Parses files containing lines like KEY=value as key-value pairs
    • See the docs for details

New functions

Bug fixes

  • #442 Support subpaths for http datasources
  • #465 AWS region detection for SSM param store datasources
  • #468 Sort YAML objects alphabetically by key
  • #473 Propagate signals to post-run processes

3.1.0

30 Nov 03:01
v3.1.0
2f357bd
Compare
Choose a tag to compare

This may be a minor version bump, but it contains some major features! 💪 🚀

Aside from some new functions, behind-the-scenes updates, and docs updates, there's a new way to interact with datasources, a way to process templates in-line, and support for encrypted JSON files! Read on for details...

Note: The Homebrew release of gomplate will likely lag for a while, as there is a known bug with UPX that's blocking it from being released. You can brew install hairyhenderson/tap/gomplate in the meantime to get the latest version.

v3.1.0 (2018-11-29)

Full Changelog

Release Notes

New features and changes

  • #415 Changed the hairyhenderson/gomplate Docker image so that it's easier to pipe templates in without any commandline arguments. Thanks to @strokyl for this!
  • #420 Support decrypting ejson files
    • Adds support for ejson-encrypted JSON files, both in datasources and the json function
  • #424 New --context flag for adding datasources to context
    • Allows you to reference a datasource with dot-notation (i.e. {{ .foo }} instead of {{ ds "foo" }}) - multi-arg datasources still require the datasource/ds function
  • #431 Added some missing documentation for AWS environment variables
  • #439 Adding option to suppress empty output files
    • Perhaps a niche feature, but hopefully useful to some! Enable this with GOMPLATE_SUPPRESS_EMPTY=true. If you feel this should be more widely supported (through a commandline flag), please file an issue!

New functions

3.0.0

25 Sep 04:06
v3.0.0
04e7f2a
Compare
Choose a tag to compare

Finally, gomplate has support for nested templates! 🎉 This, and some API changes, means it's time for the next major release! Welcome to gomplate 3.0! 🤖

v3.0.0 (2018-09-25)

Full Changelog

Release Notes

New features and changes

  • Improved documentation at https://gomplate.hairyhenderson.ca/syntax/ (#394)
  • Improved documentation for the conv namespace (added more examples/usage info) (#396)
  • New support for nested templates with the --template/-t flag (#403)
    • Currently templates may be loaded from the local filesystem, but remote template support is likely to be added in the future. Please file an issue if you have a specific use-case for this!
  • For developers who may be using gomplate as a library, #380 has made some changes to function signatures, and so may introduce incompatibilities in your code. Most of the changes involve template functions which should not be called directly (only through text/template). If this is a problem, please file an issue!

New functions

Bug fixes

2.8.0

30 Aug 02:09
9ef25f9
Compare
Choose a tag to compare

No new functions for once 😅, but still plenty of improvements under the hood!

v2.8.0 (2018-08-29)

Full Changelog

Release Notes

New features and changes

  • New --verbose flag (#385)
  • New --chmod flag to explicitly set output file modes (#369)
  • Export Funcs function to help enable usage of gomplate as library (#372) - Thank you, @dcwangmit01!
  • Updated to Go 1.11 (#382)
    • This adds a very useful feature for template authors: "Modifying template variables via assignments is now permitted via the = token:"
      {{ $v := "init" }}
      {{ if true }}
        {{ $v = "changed" }}
      {{ end }}
      v: {{ $v }} {{/* "changed" */}}
      
  • For those who may have been using gomplate as a library, (#376) removed unexported a number of functions that were never meant to be exported. If this is a problem, please file an issue!
  • MIME type detection precedence has been fixed (#374)