rehype-partials
Partials support for rehype.
Usage
With the following html,
index.html
<!-- href='include/hello.html' -->
./include/hello.html
<!-- href='world.html' -->
./include/world.html
world
and the following js,
index.js
var reporter = var format = var vfile = var rehype = var partials =
will output:
./index.html: no issues found
world
Options
options.handle
Type: function
Default: fs.readFile
Function used to get a partial. example
options.cwd
Type: String
Default: ''
Set the current working directory to resolve a partial's path.
options.noresolve
Type: Boolean
Default: false
Whether or not to use path.resolve
when looking for a partial.
options.messages
Type: Boolean
Default: true
Whether to include messages generated when parsing a partial.
License
MIT © Paul Zimmer