summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-08-22 18:15:24 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-22 18:15:24 +0800
commitdfe179d66517ab60dc80a89e6d5d14dd20b3fa2f (patch)
tree1fc9331f337fb622217d9cddfb0b723c85e6a8ed /docs
parentf3fe134973e06b7498403c2775b8cdd181139380 (diff)
downloadcask-dfe179d66517ab60dc80a89e6d5d14dd20b3fa2f.tar.gz
cask-dfe179d66517ab60dc80a89e6d5d14dd20b3fa2f.tar.bz2
cask-dfe179d66517ab60dc80a89e6d5d14dd20b3fa2f.zip
0.1.30.1.3
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/1 - Cask: a Scala HTTP micro-framework.md21
1 files changed, 18 insertions, 3 deletions
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)
+<html>
+ <body>
+ <h1>@titleTxt</h1>
+ <p>I am cow</p>
+ </body>
+</html>
+```
## Extending Endpoints with Decorators