Skip to content

Commit

Permalink
Fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sake92 committed Oct 9, 2024
1 parent ae94819 commit b9a88d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/scala-cli/form_handling.sc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import ba.sake.hepek.html.HtmlPage
import ba.sake.sharaf.*, routing.*

object ContacUsView extends HtmlPage:
override def bodyContent =
override def pageContent =
form(action := "/handle-form", method := "POST")(
div(
label("Full Name: ", input(name := "fullName", autofocus))
Expand Down
4 changes: 2 additions & 2 deletions examples/scala-cli/html.sc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ import ba.sake.hepek.html.HtmlPage
import ba.sake.sharaf.*, routing.*

object IndexView extends HtmlPage:
override def bodyContent = div(
override def pageContent = div(
p("Welcome!"),
a(href := "/hello/Bob")("Hello world")
)

class HelloView(name: String) extends HtmlPage:
override def bodyContent =
override def pageContent =
div("Hello ", b(name), "!")

val routes = Routes:
Expand Down

0 comments on commit b9a88d0

Please sign in to comment.