summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-08-13 00:42:18 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-13 00:45:14 +0800
commiteb32d8d4a1e2bd50e5416fcfefd72dfe6da1a7bb (patch)
tree9b58c66dd7f54624b3d023e10ffa62c2a341feca /docs
parentbdf3a1313a171a5a01a8cbec535b7366e4861924 (diff)
downloadcask-eb32d8d4a1e2bd50e5416fcfefd72dfe6da1a7bb.tar.gz
cask-eb32d8d4a1e2bd50e5416fcfefd72dfe6da1a7bb.tar.bz2
cask-eb32d8d4a1e2bd50e5416fcfefd72dfe6da1a7bb.zip
Add scalatags example
Diffstat (limited to 'docs')
-rw-r--r--docs/pages/1 - Cask: a Scala HTTP micro-framework .md11
1 files changed, 11 insertions, 0 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 7ed6916..b41fbe6 100644
--- a/docs/pages/1 - Cask: a Scala HTTP micro-framework .md
+++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework .md
@@ -184,6 +184,17 @@ Cask provides some convenient helpers `cask.Redirect` and `cask.Abort` which you
can return; these are simple wrappers around `cask.Request`, and simply set up
the relevant headers or status code for you.
+### HTML Rendering
+
+Cask doesn't come bundled with HTML templating functionality, but it makes it
+really easy to use community-standard libraries like
+[Scalatags](https://github.com/lihaoyi/scalatags) to render your HTML. Simply
+adding the relevant `ivy"com.lihaoyi::scalatags:0.6.7"` dependency to your
+`build.sc` file is enough to render Scalatags templates:
+
+$$$scalatags
+
+
### Extending Endpoints with Decorators