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