Skip to content

Commit

Permalink
Update IncludeCached - improve return statement example
Browse files Browse the repository at this point in the history
  • Loading branch information
jmooring committed Jan 21, 2024
1 parent b053fa0 commit 0371510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/functions/partials/IncludeCached.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The variant arguments are not available to the underlying partial template; they
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 }}
Expand Down

0 comments on commit 0371510

Please sign in to comment.