We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This won't compile:
{% templ Todo(t *todo.Todo) %} <div> <div>{%= t.Item %}</div> </div> {% endtempl %}
Because there's already a (t templ.Component) return variable.
(t templ.Component)
func Todo(t *todo.Todo) (t templ.Component) { return templ.ComponentFunc(func(ctx context.Context, w io.Writer) (err error) { _, err = io.WriteString(w, "<div>") if err != nil { ...
There just doesn't need to be.
The text was updated successfully, but these errors were encountered:
7dc1886
No branches or pull requests
This won't compile:
Because there's already a
(t templ.Component)
return variable.There just doesn't need to be.
The text was updated successfully, but these errors were encountered: