From 0d7a8e3c5a2d949957d327520ae2430b8ac47a8d Mon Sep 17 00:00:00 2001 From: Joe Davidson Date: Fri, 3 Nov 2023 22:22:35 +0000 Subject: [PATCH] chore: remove reference to legacy template call expression (#280) --- .../09-template-composition.md | 49 +++++++++++-------- 1 file changed, 28 insertions(+), 21 deletions(-) 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()
-