Skip to content

Commit

Permalink
Merge pull request #22 from mikepmunroe/patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Oct 7, 2023
2 parents 58dff4a + c52bb12 commit fa14313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/html/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ This would work just fine for a list of views as each method can be called multi

One caveat of defining the view this way is `title` and `body` could be called in any order. This offers flexibility, but what if you need to make sure your markup is output in a consistent order?

First, include `Phlex::DeferredRender` in your view. This changes the behavior of `template` so it does not receive a block and is yielded early. Then use public methods to save blocks, passing them to back to the `template` at render time.
First, include `Phlex::DeferredRender` in your view. This changes the behavior of `template` so it does not receive a block and is yielded early. Then use public methods to save blocks, passing them back to the `template` at render time.

```phlex
example do |e|
Expand Down

0 comments on commit fa14313

Please sign in to comment.