You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{#moduleConfig}}
# API-Documentation
This page describes the API of this Bootprint-module
* [Templates](#templates)
* [Partials](#partials)
* [Handlebars Helpers](#helpers)
{{#eachhandlebars.helpers}}{{#if.}}{{#withPackageOf.}}
* from [{{@package.name}}@{{@package.version}}](#helpers-{{htmlId @package.name}})
{{/withPackageOf}}{{/if}}{{/each}}
* [LessCSS](#lesscss)
# Templates
{{#eachhandlebars.callHierarchy.children}}{{>bootprint/hbs-file.md .}}{{/each}}
## Partials
{{#eachhandlebars.partials}}{{>bootprint/hbs-file.mdname=@keytype='partial'}}{{/each}}{{!-- ##### Handlebars Helpers ##### --}}{{#eachhandlebars.helpers}}{{#if.}}{{#withPackageOf.}}
<aname="helpers-{{htmlId @package.name}}"></a>
# Helpers ({{@package.name}})
(from [{{@package.name}}@{{@package.version}}/{{@relativePath}}]({{@url}})
{{/withPackageOf}})
{{jsdoc .}}{{else}}
## Inlined helpers
*Some helpers are defined directly in the configuration and not via path-reference to a module.
The docs for these helpers cannot be generated and are missing on this page.
If you are the author of this package, please consider putting the helpers into a distinct file
and adding only the path to the configuration.*
{{/if}}{{/each}}
# LessCSS
## Main LessCSS-files
{{#eachless.main}}
* {{#withPackageOf.}}[{{@package.name}}@{{@package.version}}/{{@relativePath}}]({{@url}}){{/withPackageOf}}{{/each}}
## LessCSS include paths
{{#eachless.paths}}
* {{#withPackageOf.}}[{{@package.name}}@{{@package.version}}/{{@relativePath}}]({{@url}}){{/withPackageOf}}{{/each}}{{/moduleConfig}}
{{!--This partial renders a call hierarchy of templates and partials as tree. The inputis a JSON object containing nested tree-nodes in a `children`-property.The `renderTree`-helper is used to render the tree (so the input must be compatibleto this helper. The `callHierarchy` generated by the docEngine of `customize-engine-handlebars`is supposed to be passed in here.@param {object} tree an object of the same structure as the 'callHierarchy' property generated by the docEngine of `customize-engine-handlebars`--}}{{#renderTree.}}{{#ifname~}}
<ahref="#{{type}}-{{htmlIdname}}">{{name}}</a>
{{/if}}{{~#ifcycleFound}}
<spantitle="cycle detected"><i>(🔁 cycle detected)</i> </span>
{{else}}{{!-- Comment is omitted if this is a cycle --}}{{~#ifcomments.[0]}}
<i>{{abbrevcomments.[0] 50}}</i>
{{~/if}}{{/if}}{{/renderTree}}
{{!-- This partial is included just below the ussage example. You can override this partial in order to add a more detailed explaination about what your specific example.json is an where it comes from. You should at least cite your source if you have taken the example from somewhere else.@api public--}}
`example.json` can be found in [examples/example.json](examples/example.json) in this project.
## Usage
{{#if (exists'examples')}}
After installing the package globally, you can run bootprint with the command
```bash
bootprint {{shortModuleNamepackage.name}}{{#withPackageOf'examples/example.json'}}{{@rawUrl}}{{/withPackageOf}} target
```
{{>bootprint/example-description.md}}
Bootprint will then generate the following files:
{{runBootprint'.''./examples/example.json''examples/target'}}{{/if}}
## Customizing
You can write your own module that customizes the partials and helpers in this module
(see [the bootprint documentation](https://github.com/bootprint/bootprint/blob/master/doc/modules.md)) for details.
The entrypoint JavaScript-file of such a module would look like.
```js
module.exports = function (customize) {
return customize
.load(require('{{package.name}}'))
.merge({
// You customizations here
})
// Add "package" metadata. This can be evaluated by documentation generators
module.exports.package = require('./package')
```
The surrounding fences of a code-block must have more backticks than the maximum number of
consecutive backticks in the contents (escaping backticks github/markup#363).
This block-helper creates enough and at least three.
Kind: static method of helpers Returns: Promise.<string> - the string containing the Access: public Example
Continue with the thought-configuration of the current plugin
The helper loads the thought-configuration from the plugin in the current
working directory and passed the resulting JSON as context to
the content-block.