Update Include.md - improve return statement example

This commit is contained in:
Joe Mooring
2024-01-20 16:38:51 -08:00
committed by GitHub
parent 0371510730
commit 4d6d7018b9
+1 -1
View File
@@ -68,7 +68,7 @@ Then, within the partial template:
To return a value from a partial template, it must contain only one `return` statement, placed at the end of the template:
```go-html-template
{{ $result := false }}
{{ $result := "" }}
{{ if math.ModBool . 2 }}
{{ $result = "even" }}
{{ else }}