Skip to content

Commit

Permalink
chore: Naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jfyne committed Jul 9, 2023
1 parent d1a3823 commit a0bbfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func ParseFS(c ComponentRender, f fs.FS, file string) (*template.Template, error
func templateFuncs(c ComponentRender) template.FuncMap {
return template.FuncMap{
"Event": c.Event,
"Render": func(c ComponentRender) template.HTML {
"Component": func(c ComponentRender) template.HTML {
var buf bytes.Buffer
if err := c.Render().Render(&buf); err != nil {
return template.HTML(fmt.Sprintf("error rendering: %s", err))
Expand Down

0 comments on commit a0bbfd2

Please sign in to comment.