From dfe179d66517ab60dc80a89e6d5d14dd20b3fa2f Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Wed, 22 Aug 2018 18:15:24 +0800 Subject: 0.1.3 --- .../pages/1 - Cask: a Scala HTTP micro-framework.md | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md index dd98dd2..b454d0a 100644 --- a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md +++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md @@ -81,10 +81,10 @@ via the following coordinates: ```scala // Mill -ivy"com.lihaoyi::cask:0.1.1" +ivy"com.lihaoyi::cask:0.1.3" // SBT -"com.lihaoyi" %% "cask" % "0.1.1" +"com.lihaoyi" %% "cask" % "0.1.3" ``` The `./cask` command is just a wrapper around the @@ -222,7 +222,22 @@ adding the relevant `ivy"com.lihaoyi::scalatags:0.6.7"` dependency to your $$$scalatags - +If you prefer to use the +[Twirl](https://www.playframework.com/documentation/2.6.x/ScalaTemplates) +templating engine, you can use that too: + +$$$twirl + +With the following `app/views/hello.scala.html`: +```html +@(titleTxt: String) + + +

@titleTxt

+

I am cow

+ + +``` ## Extending Endpoints with Decorators -- cgit v1.2.3