get-assemble-partial-path

Get the assemble partial path

Usage no npm install needed!

<script type="module">
  import getAssemblePartialPath from 'https://cdn.skypack.dev/get-assemble-partial-path';
</script>

README

get-assemble-partial-path

npm version travis dependencies devDependencies License

Get the assemble partial path

Install

$ npm i --save get-assemble-partial-path

Usage

In assemble plugin:

var getPartialPath = require('get-assemble-partial-path');

module.exports = function (params, cb) {

  getPartialPath(params, 'header', function (err, data) {
    console.log(data);
    cb();
  });
};

module.exports.options = {
  stage: 'render:post:pages'
};

License

MIT