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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 }}