Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove reference to legacy template call expression #280

Merged
merged 2 commits into from
Nov 3, 2023

Conversation

joerdav
Copy link
Collaborator

@joerdav joerdav commented Nov 3, 2023

This relates to #279

@@ -66,17 +66,17 @@ 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.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thinking about this, it probably needs some more description.

If l and r are template parameters, this syntax is correct, but if you have a templ l() { <div>Hello</div> }, then you need to use @l(), not just @l.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've not changed the description, but maybe these examples now make it clearer.

@a-h a-h merged commit 0d7a8e3 into a-h:main Nov 3, 2023
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants