Class SnippetsDirectoryResolver
java.lang.Object
org.springframework.restdocs.asciidoctor.SnippetsDirectoryResolver
Resolves the directory from which snippets can be read for inclusion in an Asciidoctor
document. The resolved directory is relative to the
docdir of the Asciidoctor
document that it being rendered.- Author:
- Andy Wilkinson
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSnippetsDirectory(Map<String, Object> attributes) Returns the snippets directory derived from the givenattributes.
-
Constructor Details
-
SnippetsDirectoryResolver
public SnippetsDirectoryResolver()
-
-
Method Details
-
getSnippetsDirectory
Returns the snippets directory derived from the givenattributes.- Parameters:
attributes- the attributes- Returns:
- the snippets directory
-