summaryrefslogtreecommitdiff
path: root/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views
diff options
context:
space:
mode:
authorIurii Malchenko <yurique@pm.me>2019-01-04 18:32:57 +0200
committerLi Haoyi <haoyi.sg@gmail.com>2019-01-04 08:32:57 -0800
commiteb497a8f5db949ea661042371fbbc908f6524ea4 (patch)
treee30eac430ae2faf3fc2317fbc33a692cc5bd91a0 /contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views
parent54b797c2b682b0583a2f87b7da22ca9a59b8df37 (diff)
downloadmill-eb497a8f5db949ea661042371fbbc908f6524ea4.tar.gz
mill-eb497a8f5db949ea661042371fbbc908f6524ea4.tar.bz2
mill-eb497a8f5db949ea661042371fbbc908f6524ea4.zip
adding support for customizable constructor annotations, codec and "inclusive dot" (#481)
Diffstat (limited to 'contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views')
-rw-r--r--contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/hello.scala.html8
-rw-r--r--contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/wrapper.scala.html5
2 files changed, 13 insertions, 0 deletions
diff --git a/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/hello.scala.html b/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/hello.scala.html
new file mode 100644
index 00000000..16053d72
--- /dev/null
+++ b/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/hello.scala.html
@@ -0,0 +1,8 @@
+@this(title: String)
+@wrapper {
+ <html>
+ <body>
+ <h1>@title</h1>
+ </body>
+ </html>
+} \ No newline at end of file
diff --git a/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/wrapper.scala.html b/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/wrapper.scala.html
new file mode 100644
index 00000000..af1f5d8e
--- /dev/null
+++ b/contrib/twirllib/test/resources/hello-world-inclusive-dot/core/views/wrapper.scala.html
@@ -0,0 +1,5 @@
+@(content: Html)
+
+@defining("test") { className =>
+ <div class="@className">@content</div>
+} \ No newline at end of file