| Constructor and Description |
|---|
MustacheTemplate(org.springframework.restdocs.mustache.Template delegate)
Creates a new
MustacheTemplate that adapts the given delegate. |
| Modifier and Type | Method and Description |
|---|---|
String |
render(Map<String,Object> context)
Renders the template to a
String using the given context for
variable/property resolution. |
public MustacheTemplate(org.springframework.restdocs.mustache.Template delegate)
MustacheTemplate that adapts the given delegate. When
rendered, the given defaultContext will be combined with the render context
prior to executing the delegate.delegate - The delegate to adapt