Has Matter Tests if string contains front matter.
the string to inspect.
Has Template Loosly check if string contains template chars.
the string to inspect.
Help Displays help and usage information.
Init Initializes Mustr for current project
when true forces init.
Inject Creates a file stream reading chunks until match. Upon match the provided value is injected. NOTE: lines are auto updated with the correct line ending for returns.
the file name to inject into.
the string or expression to match.
the value or callback for injecting upon match.
when true the matched value is replaced.
the callback on file written.
Load Loads the template paths and config.
Normalize Parses/normalizes a template name, path or static template string. When passing a name it searches loaded template paths and matches the filename to the template name passed.
the template name, path or static template string.
Normalize Extension Ensures extension begins with "."
the extension to be normalized.
Register Registers a template with Mustr.
the template name, path or static string to be registered.
Render Renders the template and writes out result.
the path to render the template to.
the body or template string to be used in compiling.
the data to use when compiling body for render.
Transform To Transforms a string to the desired casing.
the string to be transformed.
the casing to be transformed to using lodash.
Try Require Tries to require a module logging error if failed.
the module path to be required.
Generated using TypeDoc
Generate Generates and renders a template.