Package ratpack.handlebars
Class Template
- java.lang.Object
-
- ratpack.handlebars.Template
-
public class Template extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getContentType()
Object
getModel()
String
getName()
static Template
handlebarsTemplate(String name)
static Template
handlebarsTemplate(String name, Object model)
static Template
handlebarsTemplate(String name, Object model, String contentType)
static Template
handlebarsTemplate(String name, String contentType, Consumer<? super com.google.common.collect.ImmutableMap.Builder<String,Object>> modelBuilder)
static Template
handlebarsTemplate(String name, Consumer<? super com.google.common.collect.ImmutableMap.Builder<String,Object>> modelBuilder)
static Template
handlebarsTemplate(Map<String,?> model, String name)
static Template
handlebarsTemplate(Map<String,?> model, String name, String contentType)
String
toString()
-
-
-
Method Detail
-
getName
public String getName()
-
getModel
public Object getModel()
-
getContentType
public String getContentType()
-
handlebarsTemplate
public static Template handlebarsTemplate(String name, Consumer<? super com.google.common.collect.ImmutableMap.Builder<String,Object>> modelBuilder)
-
handlebarsTemplate
public static Template handlebarsTemplate(Map<String,?> model, String name, String contentType)
-
handlebarsTemplate
public static Template handlebarsTemplate(String name, String contentType, Consumer<? super com.google.common.collect.ImmutableMap.Builder<String,Object>> modelBuilder)
-
handlebarsTemplate
public static Template handlebarsTemplate(String name, Object model, String contentType)
-
-