summaryrefslogtreecommitdiff
path: root/twirllib/test/resources/hello-world/core/views/hello.scala.html
diff options
context:
space:
mode:
authorGuillaume Grossetie <g.grossetie@gmail.com>2018-05-24 12:19:29 +0200
committerNikolay Tatarinov <5min4eq.unity@gmail.com>2018-05-24 13:19:29 +0300
commit02436b4000cc16683984244ca272b93c1ff015c7 (patch)
tree0fa431c28f31cc58fd513b5aa89c17fe4108607d /twirllib/test/resources/hello-world/core/views/hello.scala.html
parentab2a8b3b9eddbdc4212e6f0e2a4a0adea1f3caee (diff)
downloadmill-02436b4000cc16683984244ca272b93c1ff015c7.tar.gz
mill-02436b4000cc16683984244ca272b93c1ff015c7.tar.bz2
mill-02436b4000cc16683984244ca272b93c1ff015c7.zip
Add a TwirlModule to compile Twirl templates (#271)
* initial implementation * Upgrade to the latest version * Add tests * Update the code to comply with the new API * Use reflection to call TwirlCompiler.compile function * Run twirllib.test on CI * Use the Java API as a workaround * wip * Cleanup the code (code review) * Add an example to call the Scala API * twirl that works with scala API * Create functions to override the default settings (will be available in the future)
Diffstat (limited to 'twirllib/test/resources/hello-world/core/views/hello.scala.html')
-rw-r--r--twirllib/test/resources/hello-world/core/views/hello.scala.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/twirllib/test/resources/hello-world/core/views/hello.scala.html b/twirllib/test/resources/hello-world/core/views/hello.scala.html
new file mode 100644
index 00000000..acadf615
--- /dev/null
+++ b/twirllib/test/resources/hello-world/core/views/hello.scala.html
@@ -0,0 +1,6 @@
+@(title: String)
+<html>
+ <body>
+ <h1>@title</h1>
+ </body>
+</html> \ No newline at end of file