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

Adding 'has' func to determine if an object has a named key #101

Merged
merged 1 commit into from
Mar 7, 2017

Conversation

hairyhenderson
Copy link
Owner

For this kind of situation:

{{ $data := datasource "foo" "bar" }}
{{ if (has $data "baz") }}
  {{ $data.baz }}
{{ end }}

Signed-off-by: Dave Henderson dhenderson@gmail.com

@hairyhenderson hairyhenderson force-pushed the has-func branch 2 times, most recently from a38ee92 to 42623dc Compare March 7, 2017 01:38
@hairyhenderson hairyhenderson changed the title [WIP] Adding 'has' func to determine if an object has a named key Adding 'has' func to determine if an object has a named key Mar 7, 2017
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant