mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 18:18:37 +00:00
Update partials.md
This commit is contained in:
1 parent
9f4bd00236
commit
55467e7c83
1 file changed
+1
-1
@@ -78,7 +78,7 @@ This means the partial will *only* be able to access those variables. The partia
|
|||||||
|
|
||||||
## Returning a value from a Partial
|
## Returning a value from a Partial
|
||||||
|
|
||||||
In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement.
|
In addition to outputting markup, partials can be used to return a value of any type. In order to return a value, a partial must include a lone `return` statement _at the end of the partial_.
|
||||||
|
|
||||||
### Example GetFeatured
|
### Example GetFeatured
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user