Class MustacheTemplate
java.lang.Object
org.springframework.restdocs.templates.mustache.MustacheTemplate
- All Implemented Interfaces:
Template
- Author:
- Andy Wilkinson
-
Constructor Summary
ConstructorDescriptionMustacheTemplate
(org.springframework.restdocs.mustache.Template delegate) Creates a newMustacheTemplate
that adapts the givendelegate
.MustacheTemplate
(org.springframework.restdocs.mustache.Template delegate, Map<String, Object> context) Creates a newMustacheTemplate
that adapts the givendelegate
. -
Method Summary
-
Constructor Details
-
MustacheTemplate
public MustacheTemplate(org.springframework.restdocs.mustache.Template delegate) Creates a newMustacheTemplate
that adapts the givendelegate
.- Parameters:
delegate
- the delegate to adapt
-
MustacheTemplate
public MustacheTemplate(org.springframework.restdocs.mustache.Template delegate, Map<String, Object> context) 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
-
-
Method Details