diff --git a/docs/docs/03-syntax-and-usage/09-template-composition.md b/docs/docs/03-syntax-and-usage/09-template-composition.md index b68076910..5131023b5 100644 --- a/docs/docs/03-syntax-and-usage/09-template-composition.md +++ b/docs/docs/03-syntax-and-usage/09-template-composition.md @@ -66,17 +66,21 @@ The use of the `{ children... }` expression in the child component. # Components as parameters -Components can also be passed as parameters and rendered using the `{! component }` expression. +Components can also be passed as parameters and rendered using the `@component` expression. ```templ package main -templ layout(l, r templ.Component) { -
- {! l } +templ heading() { +

Heading

+} + +templ layout(contents templ.Component) { +
+ @heading()
-