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

Template tests #137

Merged
merged 4 commits into from
Oct 1, 2014
Merged

Conversation

jsolmon
Copy link
Collaborator

@jsolmon jsolmon commented Sep 29, 2014

Tests for all template functions in a framework that should make it easier to write more in the future.
Added missing template functions to templates.md.

@@ -66,7 +66,6 @@ Wrapper for [strings.Split](http://golang.org/pkg/strings/#Split). Splits the in
{{ $url := split (getv "/deis/service") ":" }}
host: {{index $url 0}}
port: {{index $url 1}}
{{end}}
```
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we still need the {{end}} tag

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{{end}} isn't necessary here. See the test for split. If {{end}} is present, the template won't parse.

kelseyhightower added a commit that referenced this pull request Oct 1, 2014
@kelseyhightower kelseyhightower merged commit 83de83f into kelseyhightower:0.6.x Oct 1, 2014
tomdee added a commit to tomdee/confd that referenced this pull request Jul 31, 2018
ci and cd push all arches; ability to exclude specific
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

Successfully merging this pull request may close these issues.

2 participants