Resource

constructor(name: String, path: String, workingDirectory: File? = null, content: CharSequence)

Parameters

name

the name of the subdocument, without extension

path

the absolute path to the subdocument file or resource

workingDirectory

the working directory to be used to resolve relative file paths within the subdocument. Note that if this is null, then the pipeline's working directory should be used. To get consistent results, rely on the context's com.quarkdown.core.context.file.FileSystem.workingDirectory.

content

the subdocument text content