Skip to content

Commit

Permalink
Remove unnecessary function in example
Browse files Browse the repository at this point in the history
  • Loading branch information
chasefleming committed Nov 24, 2023
1 parent b910289 commit 7afbb5b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions examples/htmx-fiber-todo/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,11 @@ func renderTodos(todos []Todo) string {
),
elem.Ul(
attrs.Props{attrs.Style: listContainerStyle.ToInline()},
renderTodoItems(todos)...,
elem.TransformEach(todos, createTodoNode)...,
),
)

htmlContent := elem.Html(nil, headContent, bodyContent)

return htmlContent.Render()
}

func renderTodoItems(todos []Todo) []elem.Node {
return elem.TransformEach(todos, createTodoNode)
}

0 comments on commit 7afbb5b

Please sign in to comment.