Add Groovy template engine support for Spring MVC apps

Default suffix .tpl. If groovy-templates is on the classpath user
can now add templates and get them rendered and resolved in an MVC
app.

TODO: Macro helpers for message rendering etc.

See gh-878
This commit is contained in:
Dave Syer
2014-05-15 12:33:05 +01:00
parent 938609fdc0
commit da2e25f90d
17 changed files with 722 additions and 1 deletions

View File

@@ -0,0 +1 @@
yield "custom"

View File

@@ -0,0 +1 @@
yield "home"

View File

@@ -0,0 +1 @@
yield "here"

View File

@@ -0,0 +1 @@
yield "voila"

View File

@@ -0,0 +1,2 @@
yield "include"
include template: "included.tpl"

View File

@@ -0,0 +1 @@
yield "Message: ${greeting}"

View File

@@ -0,0 +1 @@
yield "prefixed"

View File

@@ -0,0 +1,3 @@
yield """
suffixed
"""