You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been looking at this for days. Am I plugging the function in wrong? Are (non-builtin) functions disallowed in conditional argument conditions? Or is this just a bug?
The text was updated successfully, but these errors were encountered:
I have a similar issue. Seems like Amber compiles function call foo() as {{call .foo}}. However, there is no method foo() in the data bound (you pass nil as your template data), thus the error.
I was able to work around this by passing a map of interface{} into c.Execute like c.Execute(os.Stdout, map[string]interface{}{"hasData": hasData})
Using this code:
Results in this error:
I've been looking at this for days. Am I plugging the function in wrong? Are (non-builtin) functions disallowed in conditional argument conditions? Or is this just a bug?
The text was updated successfully, but these errors were encountered: