Commit 79b6c0a7 authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1735 from technosophos/docs/link-to-go-whitespace

docs(chart_template_guide): link to Go template docs
parents e53f8333 21d0d6ba
...@@ -214,6 +214,8 @@ Be careful with the chomping modifiers. It is easy to accidentally do things lik ...@@ -214,6 +214,8 @@ Be careful with the chomping modifiers. It is easy to accidentally do things lik
That will produce `food: "PIZZA"mug:true` because it consumed newlines on both sides. That will produce `food: "PIZZA"mug:true` because it consumed newlines on both sides.
> For the details on whitespace control in templates, see the [Official Go template documentation](https://godoc.org/text/template)
Finally, sometimes it's easier to tell the template system how to indent for you instead of trying to master the spacing of template directives. For that reason, you may sometimes find it useful to use the `indent` function (`{{indent 2 "mug:true"}}`). Finally, sometimes it's easier to tell the template system how to indent for you instead of trying to master the spacing of template directives. For that reason, you may sometimes find it useful to use the `indent` function (`{{indent 2 "mug:true"}}`).
## Modifying scope using `with` ## Modifying scope using `with`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment