3.2.1 • Published 2 years ago
@hoast/process-handlebars v3.2.1
@hoast/process-handlebars
Template using Handlebars.
Install
npm install @hoast/process-handlebarsOptions
{String} property = 'contents'Dot notation path to the data property which should be used processed by handlebars.{String} templateDirectory = nullTemplate directory path, either absolute or relative to the working directory.{String} templatePath = nullDefault template path relative to the template directory.{String} templateProperty = nullDot notation path to the data property where the template path can be written.{Object} handlebarsOptions = {}Handlebars options.{Object} helpers = nullObject of Handlebars helpers whereby the key is the name of the helper and the value the helper function.{String} helpersDirectory = nullHandlebars helpers directory path, either absolute or relative to the working directory. All items in the directory will be read where the path relative to the given directory is the name of the helper and the default export of the file the helper.{Object} partials = nullObject of Handlebars parials whereby the key is the name of the parial and the value the partial contents.{String} partialsDirectory = nullHandlebars partials directory path, either absolute or relative to the working directory. All items in the directory will be read where the path relative to the given directory is the name of the partial and the contents of the file the partial.{Function} filter = nullCustom filter function. The item data is given as the parameter. Returntrueif it should be processed, returnfalseif this processor should be skipped.{Number} logLevel = 2Log level given to the logger.