README
@hoast/process-mithril
Template using Mithril.
Install
% yarn add @hoast/process-mithril
OR
% npm install @hoast/process-mithril --save
Options
{String} property = 'contents'Dot notation path to the data property which should be processed by Mithril.{String} componentDirectory = nullComponent directory path, either absolute or relative to the working directory.{String} componentPath = nullDefault component path relative to the component directory.{String} componentProperty = nullDot notation path to the data property where the component path can be written.{String} prefix = nullText to prepend to the result. For instance<!DOCTYPE html>if you are generating an entire webpage using mithril.{String} suffix = nullText to append to the result.{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.