From 02436b4000cc16683984244ca272b93c1ff015c7 Mon Sep 17 00:00:00 2001 From: Guillaume Grossetie Date: Thu, 24 May 2018 12:19:29 +0200 Subject: 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) --- twirllib/test/resources/hello-world/core/views/hello.scala.html | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 twirllib/test/resources/hello-world/core/views/hello.scala.html (limited to 'twirllib/test/resources') 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) + + +

@title

+ + \ No newline at end of file -- cgit v1.2.3