aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/internal/go_templates/texttemplate/doc.go
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/internal/go_templates/texttemplate/doc.go')
-rw-r--r--tpl/internal/go_templates/texttemplate/doc.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/tpl/internal/go_templates/texttemplate/doc.go b/tpl/internal/go_templates/texttemplate/doc.go
index 032784bc3..b3ffaabb1 100644
--- a/tpl/internal/go_templates/texttemplate/doc.go
+++ b/tpl/internal/go_templates/texttemplate/doc.go
@@ -144,6 +144,13 @@ data, defined in detail in the corresponding sections that follow.
is executed; otherwise, dot is set to the value of the pipeline
and T1 is executed.
+ {{with pipeline}} T1 {{else with pipeline}} T0 {{end}}
+ To simplify the appearance of with-else chains, the else action
+ of a with may include another with directly; the effect is exactly
+ the same as writing
+ {{with pipeline}} T1 {{else}}{{with pipeline}} T0 {{end}}{{end}}
+
+
Arguments
An argument is a simple value, denoted by one of the following.