summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/go-template/continue.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/go-template/continue.md')
-rw-r--r--docs/content/en/functions/go-template/continue.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/docs/content/en/functions/go-template/continue.md b/docs/content/en/functions/go-template/continue.md
new file mode 100644
index 000000000..c8030b8b7
--- /dev/null
+++ b/docs/content/en/functions/go-template/continue.md
@@ -0,0 +1,34 @@
+---
+title: continue
+description: Used with the range statement, stops the innermost iteration and continues to the next iteration.
+categories: []
+keywords: []
+action:
+ aliases: []
+ related:
+ - functions/go-template/break
+ - functions/go-template/range
+ returnType:
+ signatures: [continue]
+---
+
+This template code:
+
+```go-html-template
+{{ $s := slice "foo" "bar" "baz" }}
+{{ range $s }}
+ {{ if eq . "bar" }}
+ {{ continue }}
+ {{ end }}
+ <p>{{ . }}</p>
+{{ end }}
+```
+
+Is rendered to:
+
+```html
+<p>foo</p>
+<p>baz</p>
+```
+
+{{% include "functions/go-template/_common/text-template.md" %}}