Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

function "math" not defined #224

Closed
r0bj opened this issue Nov 1, 2017 · 7 comments
Closed

function "math" not defined #224

r0bj opened this issue Nov 1, 2017 · 7 comments

Comments

@r0bj
Copy link

r0bj commented Nov 1, 2017

gomplate version: 2.1.0

Using math example from docs:

$ gomplate -i '{{ math.Add 1 2 3 4 }}'
2017/11/01 16:58:06 Line "{{ math.Add 1 2 3 4 }}": template: template:1: function "math" not defined
$ gomplate -i '{{ add 1 2 3 4 }}'
2017/11/01 16:58:09 Line "{{ add 1 2 3 4 }}": template: template:1: function "add" not defined
@hairyhenderson
Copy link
Owner

@r0bj sorry about this! the math namespace was just added in #214, and hasn't hit a released version yet. The docs track master (for simplicity). I'm hoping to release a new version (probably 2.2.0) soon (maybe by tomorrow), at which point this will work.

@r0bj
Copy link
Author

r0bj commented Nov 2, 2017

@hairyhenderson Thanks for info.

@marcbachmann
Copy link

Oh, I also just ran into this.
It's a bit weird that the new documentation is already online but there's no release.
Thanks for releasing. 😁

@hairyhenderson
Copy link
Owner

It's a bit weird

I know, I know... 😂

@hairyhenderson
Copy link
Owner

A release is coming soon - just want to get one more thing in 😉

@hairyhenderson
Copy link
Owner

Ok, v2.2.0 is out now: https://github.com/hairyhenderson/gomplate/releases/tag/v2.2.0 - it knows math 😉

@marcbachmann
Copy link

😍 thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants