From b9a88d06453a53c291114af87f8bcb1a7a0382e9 Mon Sep 17 00:00:00 2001 From: Sakib Hadziavdic Date: Wed, 9 Oct 2024 16:12:41 +0200 Subject: [PATCH] Fix examples --- examples/scala-cli/form_handling.sc | 2 +- examples/scala-cli/html.sc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/scala-cli/form_handling.sc b/examples/scala-cli/form_handling.sc index dbbc826..82ead06 100644 --- a/examples/scala-cli/form_handling.sc +++ b/examples/scala-cli/form_handling.sc @@ -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)) diff --git a/examples/scala-cli/html.sc b/examples/scala-cli/html.sc index 3482271..4be9783 100644 --- a/examples/scala-cli/html.sc +++ b/examples/scala-cli/html.sc @@ -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: