compile "org.grails.plugins:views-json-templates:4.0.0-SNAPSHOT"
-diff --git a/snapshot/index.html b/snapshot/index.html index 7839f5c05..cd28997ea 100644 --- a/snapshot/index.html +++ b/snapshot/index.html @@ -704,14 +704,6 @@
If you are also using MongoDB you may want to add the views-json-templates
dependency too which includes support for GeoJSON:
compile "org.grails.plugins:views-json-templates:4.0.0-SNAPSHOT"
-To enable Gradle compilation of JSON views for production environment add the following to the buildscript
dependencies
block:
For example if you want to render all instances of type foo.bar.Birthday
create a template called src/main/gson/foo/bar/_birthday.gson
then compile the template and place the JAR on the classpath of your application.
- - | --See the GeoJSON templates for MongoDB for example of how it provides global templates for Mongo specific classes. - | -