the template to add partials to.
the list of partials to add.
Configure Configures template for output.
the name of the template to load.
the output name/path to use when rendering.
the optional metadata for the template.
Get Partial
the partial to get.
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.
the template front matter which overrides static properties.
Register Group Registers a group of templates which will output to the specified directory. Often a component may have several files such as styles helpers, interfaces or maybe actions for react. This makes it easy to output all the files needed at once, hence a "component".
the name of the component regsiter.
array of template names or csv params.
Render Renders the requested template.
the name of the template to render.
the output path/name to render the template as.
the metadata for template NOT config opt as in register/configure.
forces overwriting existing file.
Node style callback with err and rendered template.
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
Add Partials