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.
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.
insert on before, after, replace, first or last when matched.
the value or callback for injecting upon match.
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.
to use when registering a template.
the template name or path to lookup or a static string.
Render Renders the requested template.
the name of the template to render.
the output path/name to render the template as.
Transform To Transforms a string to the desired casing.
the string to be transformed.
the casing to be transformed to using lodash.
Truncate Nothing special, cheesy truncation...move along.
the string to be truncated.
the max len before truncating.
Try Require Tries to require a module logging error if failed.
the module path to be required.
Generated using TypeDoc
Configure Configures template for output.