Class SnippetsDirectoryResolver

java.lang.Object
org.springframework.restdocs.asciidoctor.SnippetsDirectoryResolver

public class SnippetsDirectoryResolver extends Object
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 Details

    • SnippetsDirectoryResolver

      public SnippetsDirectoryResolver()
  • Method Details

    • getSnippetsDirectory

      public File getSnippetsDirectory(Map<String,Object> attributes)
      Returns the snippets directory derived from the given attributes.
      Parameters:
      attributes - the attributes
      Returns:
      the snippets directory