summaryrefslogtreecommitdiff
path: root/main
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 /main
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 'main')
-rw-r--r--main/test/src/mill/define/CacherTests.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/test/src/mill/define/CacherTests.scala b/main/test/src/mill/define/CacherTests.scala
index 03232930..98f2b7f8 100644
--- a/main/test/src/mill/define/CacherTests.scala
+++ b/main/test/src/mill/define/CacherTests.scala
@@ -17,7 +17,7 @@ object CacherTests extends TestSuite{
}
object Middle extends Middle
trait Middle extends Base{
- def value = T{ super.value() + 2}
+ override def value = T{ super.value() + 2}
def overriden = T{ super.value()}
}
object Terminal extends Terminal