Class MustacheTemplate
java.lang.Object
org.springframework.restdocs.templates.mustache.MustacheTemplate
- All Implemented Interfaces:
Template
-
Constructor Summary
ConstructorsConstructorDescriptionMustacheTemplate
(com.samskivert.mustache.Template delegate) Creates a newMustacheTemplate
that adapts the givendelegate
.MustacheTemplate
(com.samskivert.mustache.Template delegate, Map<String, Object> context) Creates a newMustacheTemplate
that adapts the givendelegate
. -
Method Summary
-
Constructor Details
-
MustacheTemplate
public MustacheTemplate(com.samskivert.mustache.Template delegate) Creates a newMustacheTemplate
that adapts the givendelegate
.- Parameters:
delegate
- the delegate to adapt- Since:
- 4.0.0
-
MustacheTemplate
Creates a newMustacheTemplate
that adapts the givendelegate
. During rendering, the givencontext
and the context passed intorender(Map)
will be combined and then passed to the delegate when it isexecuted
.- Parameters:
delegate
- the delegate to adaptcontext
- the context- Since:
- 4.0.0
-
-
Method Details
-
render
-