Skip to content

Commit

Permalink
remove the name from the template output, fixes #7
Browse files Browse the repository at this point in the history
  • Loading branch information
a-h committed May 22, 2021
1 parent d4e1222 commit 7dc1886
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions example/posts_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ func (g *generator) writeTemplate(t templ.Template) error {
return err
}
g.sourceMap.Add(t.Parameters, r)
// ) (t templ.Component error) {
if _, err = g.w.Write(") (t templ.Component) {\n"); err != nil {
// ) templ.Component {
if _, err = g.w.Write(") templ.Component {\n"); err != nil {
return err
}
indentLevel++
Expand Down
4 changes: 2 additions & 2 deletions generator/test-call/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-for/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-html/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-if/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-ifelse/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-string/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-switch/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion generator/test-switchdefault/template_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7dc1886

Please sign in to comment.