Skip to content

Commit

Permalink
Add note about using RendererInterface::render()
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksi Peebles <[email protected]>
  • Loading branch information
aleksip committed May 1, 2020
1 parent 2e961a1 commit 55790f6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/book/helpers/partial.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ The `Partial` view helper is used to render a specified template within its own
variable scope. The primary use is for reusable template fragments with which
you do not need to worry about variable name clashes.

> Note that it is also possible to render a template within its own variable
> scope by calling `RendererInterface::render()` with a `$values` argument.
> See the documentation for [`PhpRenderer`](../php-renderer.md#render) for
> more information.
A sibling to the `Partial`, the `PartialLoop` view helper allows you to pass
iterable data, and render a partial for each item.

Expand Down

0 comments on commit 55790f6

Please sign in to comment.