{"_id":"@balena/doxx-handlebars-helper","_rev":"55-f567705a359e74f2f2f7a9bd0a5dfc26","name":"@balena/doxx-handlebars-helper","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba":{"name":"@balena/doxx-handlebars-helper","version":"1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba","author":{"name":"Eugene Mirotin","email":"eugene@resin.io"},"license":"Apache-2.0","_id":"@balena/doxx-handlebars-helper@1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba","maintainers":[{"name":"balena.io","email":"accounts+npm@balena.io"},{"name":"nazrhom","email":"nazrhom@gmail.com"},{"name":"page","email":"page@balena.io"}],"homepage":"https://github.com/balena-io-modules/doxx-handlebars-helper","bugs":{"url":"https://github.com/balena-io-modules/doxx-handlebars-helper/issues"},"dist":{"shasum":"33b70c16a8a0e5cca587ae850d523a3918170f82","tarball":"https://registry.npmjs.org/@balena/doxx-handlebars-helper/-/doxx-handlebars-helper-1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba.tgz","fileCount":9,"integrity":"sha512-QBYv2XrDNn0EQcHLYIMAkiXw9p+2zOVOpl4mYUU7m/422LHDI/EnS3M3FCQz5S+LQHvnSpJLqsQISI7THxGAlQ==","signatures":[{"sig":"MEYCIQCznNYyHEe+bKoNxncgNxOpgw1lT6hXLnXXjpwICio0MwIhANWMmxEQMxzW61nsqSsVYkxKLq+grD5gWcIMNQSPRJ39","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11731,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVPw5CRA9TVsSAnZWagAAw/AP/0pxcTNEmPZpdiepDOX3\n0RUD1fQUk4TpG3aqPsu8JYuyGgASxlLWKHWAq7Mm0EOAB140FqWD1hLBYvFT\n/I6GgJjP0Mw8fm060pZX+QL7FPss8wSE7c2py2LZEXisyueS6Vhb2jkIDcS/\nbReQOjEF2w8Pvn8Wp+yKwykL5mY+twuMR4kUQcFHjOqjlJwdEn7z71aX6mTP\nJuQH4upgIM91E47FJAdS/w+8CBnuXcOH6fEWgeK9W7skzJ5R+Xtx3yTJnZpO\nxJV/HIQkQ4CgcGTglW/KnOpJItq3STt/yhWT5M3YqawqQVLnWzd0dDp5s3lP\nGejkXXCxDuSGz59/Az5lJsewOUN97HXso4P6GQ12pV9Is26lC9sR81HcPSe9\nwy9nTqbbQXaVrScu9klHeQ0NuZAMmAmRQ5nYQXwh1MPj9ghYG11jL27l4D89\nCyQshYDPLlQ8wx7RLloWPFVS+/hII10ExuOXUejdOgZYGk4wa5wvg/SUcXSZ\nvZgbRmT5SvaoROOvfv1+Ajwv/7F8jnveesKurro+/TPbSLhLTfXxW+2YY+Vn\n3NFeMrBcCJzKQdtdpsnmTPBfmwMfE0adipE+9ZhnOI/bl8+mU0sXK/jJghO+\nUW5HT010RIn9gOGvCAKPj5c5VplPbVdictK/GozYjhK59G3iYWd7N1XVdlLg\nhvIp\r\n=jrIr\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"95f921468d61e38779bb6e52dff18cadd2497fba","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"coffee -o build -c lib"},"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"repository":{"url":"git://github.com/balena-io-modules/doxx-handlebars-helper.git","type":"git"},"_npmVersion":"6.14.5","description":"Handlebars helper for smart partials import.","directories":{},"_nodeVersion":"12.18.1","dependencies":{"lodash":"^4.11.1","handlebars":"^4.0.5"},"_hasShrinkwrap":false,"devDependencies":{"coffeescript":"^1.12.7"},"_npmOperationalInternal":{"tmp":"tmp/doxx-handlebars-helper_1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba_1616182329326_0.42983783974581424","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@balena/doxx-handlebars-helper","version":"1.0.0","author":{"name":"Eugene Mirotin","email":"eugene@resin.io"},"license":"Apache-2.0","_id":"@balena/doxx-handlebars-helper@1.0.0","maintainers":[{"name":"balena.io","email":"accounts+npm@balena.io"},{"name":"nazrhom","email":"nazrhom@gmail.com"},{"name":"page","email":"page@balena.io"}],"homepage":"https://github.com/balena-io-modules/doxx-handlebars-helper","bugs":{"url":"https://github.com/balena-io-modules/doxx-handlebars-helper/issues"},"dist":{"shasum":"d0847f5337145c1d7b24a18b838e10bd836fa117","tarball":"https://registry.npmjs.org/@balena/doxx-handlebars-helper/-/doxx-handlebars-helper-1.0.0.tgz","fileCount":9,"integrity":"sha512-/3Oe1vsTYoN0TMWUe/0ZREglrKn4CVmURFsD/6KTalCi9DOPbZLJzPozmMjipgSc1TU++N3p80CiEIG7+jn27Q==","signatures":[{"sig":"MEUCIC5cRVXSl3LcJX6QEnhKXyjUhVe0cKAxUBWuUpP5plijAiEAjeLo+5mY4WnlPnTCm4L3eeg0868+TfkLWjHI265J/Yw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11683,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVPzrCRA9TVsSAnZWagAAzBUP+wV5CMTTTVxiKtaoAkWN\nohcrRXLSfLgT8861hPcrU61+t38Wel0N0/JTv1OvMo+ZmKSowuKVJLDDtIAf\n6eTAAXeH1nyb60BnbH5PRCTiuq2TheRrsOt/GDIuMmmRWwLp9SQBhHRm5jDK\nDbMaYosTmxxKH3AR5HlNfarM9SjX+jw1z+8tpbJHrvZCZ9ZYmsSgZWRr1wMq\nfF9tceMYezKau2O0l1lcpLKIGgY4vhM6iVj8DoyMsjSIMgJo+SoDvCZXxkBX\nfpngqRcFNP7S6uxOQtaoJT6+zV8RCdcSF/WVQJOtlYVuAzyHlCA5ZCgCoahp\n0ID4dBLaWZE7o0GSK5M4DL98uPj7EKt+Dn3Oz1sYG9z4ndNTT9UNFbusQaLz\nEH/0gRcsZ9nCj++kLaVwb7xbz6iaa4J+Zwxvz9hdLDIEqfwLO3mCzJsIBZ3c\nDO2JYuHkfLvnQojeB4CEZkwtPD66NsR6irjTTt40BOOOQbxL5dKP7TFPo2Lo\nfiEl4XuY7lal9UBqk2JBu+dVWTQNxuk90+x/f12BsVC74UGxSl/ESUJcgevO\nsz1AlvHPXU3mxYoTq+uAV2PyHzR94k+ZrJ0c8b7gUAQXIUeQngWKNk3MAfv+\nEn2W88ENdXW1MXqangiVKnSdatT+2LyEk/tRJKwrnsmJmjcFJPur8Knq0lSj\n53Tp\r\n=/jk0\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"bda63b63de5e817b497b2fb17468bde340ee1d38","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"coffee -o build -c lib"},"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"repository":{"url":"git://github.com/balena-io-modules/doxx-handlebars-helper.git","type":"git"},"_npmVersion":"6.14.5","description":"Handlebars helper for smart partials import.","directories":{},"_nodeVersion":"12.18.1","dependencies":{"lodash":"^4.11.1","handlebars":"^4.0.5"},"_hasShrinkwrap":false,"devDependencies":{"coffeescript":"^1.12.7"},"_npmOperationalInternal":{"tmp":"tmp/doxx-handlebars-helper_1.0.0_1616182506290_0.6280733275351977","host":"s3://npm-registry-packages"}},"1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d":{"name":"@balena/doxx-handlebars-helper","version":"1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d","author":{"name":"Eugene Mirotin","email":"eugene@resin.io"},"license":"Apache-2.0","_id":"@balena/doxx-handlebars-helper@1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d","maintainers":[{"name":"balena.io","email":"accounts+npm@balena.io"},{"name":"nazrhom","email":"nazrhom@gmail.com"},{"name":"page","email":"page@balena.io"}],"homepage":"https://github.com/balena-io-modules/doxx-handlebars-helper","bugs":{"url":"https://github.com/balena-io-modules/doxx-handlebars-helper/issues"},"dist":{"shasum":"8c644d963a18c2ef49eb002288d585fcec17229e","tarball":"https://registry.npmjs.org/@balena/doxx-handlebars-helper/-/doxx-handlebars-helper-1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d.tgz","fileCount":10,"integrity":"sha512-mK+C2ODTYQtjXl/XmTKxZxj6rm+FX6wS+NIRQoBYdMgNcxSnJTg20pAEN+Rmn/g4YC4nHqVIIMhZCMlX2VH2dw==","signatures":[{"sig":"MEQCIEOgVcbvIZ46mTFt3saQjLQ1WIf8hYD5WORXcw5KNoPSAiAtDwZRSyxcVlbZqdDXW1fqhJyYyVZl5xpNPQf7QClAdA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12682,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgVP5UCRA9TVsSAnZWagAAfwwP/0UKZAHQ+fr2xVhfLLl2\nisiA5XVnfKRX7tzgfhTMDG5jbbXQcmWYBmMKRBAC5gDTbVNki9aCFR+zeu3h\nLvsBi74CDGMTwxMX2+yKfhiXtWJ+0zsw+tqFBYNRWMgERQoXI0LDuV4btyst\nvhK1dmJ5B5lUE4erIyd4e33TP4JK7J4o2QgnIR3KgFdkrFRAzr82PczS/Vnk\n0DpqujUkb8BusYM+ldOfdEB2RjKK6T7ybckqOxAdePlSqTbTVpDWSumbuCbe\nf7tSMJIOi2oEadOq0Nxw9GfxBOezKpd/iKWJsV1cP5/s4LnrhQ4Dz+LNNP8N\npw3jOJ7KlXNAvM4ES6ILOLwhot1HA3RJpEvIeKODJOYIrvJhGupl5dPlmm8Q\n2kF5qHPZLHaVUtI1SAYN3DOzdFK5R4rItKHmbl+8wysE/vgTsJ/EedWegPiA\nfgcGgpx74hcUhj8aS5Sln0OMLKxlR8WkEC6+zJRaYWVDQHBPOaRRxHOcv90b\nCijQIR2D5TE8pOfSYxCHxU+ip1i15cd/U/Nuv3Z1w2Ohj9QC9zkppXLCV/ut\nsMT+bz6Ez2FSPckpA/EiDiR8ZQmbEvgmV9wvJQlyElJRsFnNagtHjtsygbGz\nfQaDhfyCEHcUk8D2Pm89uiBNlgXl2dlRG6c/UzGEk5mIIp2ZuyWIcydLzWSo\nQvQl\r\n=37Zt\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"Handlebars helper for smart partials import.\n======================\n\n> Extracted from [doxx](https://github.com/balena-io-modules/doxx).\n\nThis is a very simple module that exposes a couple of convenience methods to render Handlebars templates by hand, and a \"smart partials\" helper.\n\n## `Handlebars`\n\nThe packaged Handlebars engine is exported as `Handlebars`\n\n## Utility methods\n\n### `compileTemplate(templateString)`\n\nA memoized version of `Handlebars.compile`\n\n### `render(template, context)`\n\nCompiles the template and renders it to a string with the given context.\nUses the memoized `compileTemplate`.\n\n### `getPartial(partialName)`\n\nFind the partial with the given name (the partial must be previously registered) and returns compiled template for it.\nUses the memoized `compileTemplate`.\n\n### `getBestPartial(prefix, options, separator = '/')`\n\nLoops through an array of `options` looking for partials named `\"#{prefix}#{separator}#{option}\"`. Returns the first match as compiled template.\nReturns `undefined` if no matches found.\nUses the memoized `compileTemplate`.\n\nExample: `getBestPartial('some/folder', [ 'specificPartial', 'defaultPartial' ])`\nwill first check for `some/folder/specificPartial` and then for `some/folder/defaultPartial` and return the compiled template for the first existing partial.\n\n**Special JSON partials handling.** For convenience multiple partials can be combined under a single JSON partial. To use this feature that special combined partial name must end with `.json` (if your partials are imported from the filesystem this usually means that the file should have double extension, like `some/file.json.part`).\nThe partial is parsed and it should result in an object whose keys are treated as search partial names. In this case the `separator` parameter is ignored.\n\nThis is useful when you have lots of small (usually one-line) partials — instead of a folder with hundreds of files in it you can have a single JSON file.\n\n## `createImportHelper(options)`\n\nThis is the main feature of the module. The function creates a helper (_but does not register it_) that can be called like that:\n\n`{{ import \"prefix\" }}`.\n\nThis helper will search for partials with their names starting with `prefix` (using `getBestPartial`). The options must be specified in the specific field on the helper execution context.\n\nThe options are:\n\n`importName`, default `'import'`. Used in exceptions and log message to identify the helper.\n\n`beforeRun`, default `null`. If a function is passed it will be called before each helper call. A good place to do some checks and log things / throw errors.\n\n`partialsSearchFieldName`, default `'$partials_search'`. The name of the property on the execution context where the search order is defined (corresponds to the `options` parameter of the `getBestPartial` method).\n\n`defaultPartialName`, default `'_default'`. The name of the partial to be checked if not partials from `partialsSearchFieldName` are found.\n\n`contextFieldName`, default `'$variables'`. Used for reporting only. If set and no partials are found the value of this field from the execution context is included into the exception message.\n\n## `registerHelper(options)`\n\nCreates the import helper and registers it with Handlebars under `options.importName`. `options` are the same described above.\n\n## `registerConsolidate(consolidate, options)`\n\nConvenience method if you use `consolidate` to render your handlebars templates. This calls `registerHelper` and then passes the reference to packaged `Handlebars` to `consolidate`.\n\n\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","gitHead":"1af655aa5553e54df939b49a275b23e915bba12d","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"coffee -o build -c lib"},"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"repository":{"url":"git://github.com/balena-io-modules/doxx-handlebars-helper.git","type":"git"},"_npmVersion":"6.14.5","description":"Handlebars helper for smart partials import.","directories":{},"_nodeVersion":"12.18.1","dependencies":{"lodash":"^4.11.1","handlebars":"^4.0.5"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"coffeescript":"^1.12.7"},"_npmOperationalInternal":{"tmp":"tmp/doxx-handlebars-helper_1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d_1616182868432_0.24294884177149778","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@balena/doxx-handlebars-helper","version":"1.0.1","author":{"name":"Eugene Mirotin","email":"eugene@resin.io"},"license":"Apache-2.0","_id":"@balena/doxx-handlebars-helper@1.0.1","maintainers":[{"name":"balena.io","email":"accounts+npm@balena.io"},{"name":"nazrhom","email":"nazrhom@gmail.com"},{"name":"page","email":"page@balena.io"}],"homepage":"https://github.com/balena-io-modules/doxx-handlebars-helper","bugs":{"url":"https://github.com/balena-io-modules/doxx-handlebars-helper/issues"},"dist":{"shasum":"1ddee4342709610dcc9bb27621d239194da5f166","tarball":"https://registry.npmjs.org/@balena/doxx-handlebars-helper/-/doxx-handlebars-helper-1.0.1.tgz","fileCount":10,"integrity":"sha512-imgGzHh9EmKUm+93Ezo/zjVJuIPlHbAObDWQjYpN+JdfLhyUTs0ufri35ZPRHUQ3671hto3L3Aka5+U9tg1ltA==","signatures":[{"sig":"MEUCIE582S1oc1HZJTXIE7fkdby/rHTOzrm/NdSdZMDoufLAAiEA6dDAKkCDaZxxBjEqZqcSIsLjBO5GQxFkWr31S43u+ho=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12623,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh12QPCRA9TVsSAnZWagAAaoAP/iSxw0LW4Rx+hK1wYypS\nmsJXuawS3RmyzuibC/vCpQoPNtjvqoW46OdlroPwTDEpIaBx51/9+AFYXcfV\nf2rFbvY6A6ioIpywpJdR4nIDaD5KFJ5L2/tlE8h2PEhaiL6WzN7OFcn098Uy\nbt5IbtIae+LE+KrG81EjKojZLWulBQYOYSl16OzpE40+47Qh2ecoRGvwCLjx\nfBWOQQCHfLv9PeSfOVSMMyuVBC6IJE0VnMM01dJ2u324Q8I1JkyrE9nfpaEH\ng6szzBgSC6ZKtZWTXFuhD+788EuoncwIXnwgMvQf8/yOIQ9zkthRcoYjrTDG\nn/nU/cSokEP2vmcQ2/J72oFPHV2m2Glfck0BwjaCokgH+1FciVq9hPJgZr9F\nXryMMkoau9PKbJjROMriKva4cAebTXyQKi9DIIPRAL3G+mU9+/Ar3aBydUhw\nYPUm0D1XtiomnJGymnMMHhTEjBd683LPlJkXGgWxMlmP4cI5oWRaDTpT2FPE\nl/kX9iryYlqZwOYjMBtVZcW5KgClaRhT80/2rvCdErtJHG2/k+YmOoCO8CB9\nciPWHUVNHYqle8xPYv+4J/h2iW4Ek7sW2uT93XWNWcD8Cl1IWcRAYZezwwr3\nql3XgBvLwF0Guhjm3G7SmflS2wJRDCmbqwCOv0EugWNOAokoRqUD5ylF0ynk\nJ0ct\r\n=vzmf\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"c27380ed63984e0888d56e3d2bf9fb3e3931cc4c","scripts":{"test":"echo \"Error: no test specified\" && exit 1","prepare":"coffee -o build -c lib"},"_npmUser":{"name":"balena.io","email":"accounts+npm@balena.io"},"repository":{"url":"git://github.com/balena-io-modules/doxx-handlebars-helper.git","type":"git"},"_npmVersion":"6.14.5","description":"Handlebars helper for smart partials import.","directories":{},"_nodeVersion":"12.18.1","dependencies":{"lodash":"^4.11.1","handlebars":"^4.0.5"},"_hasShrinkwrap":false,"devDependencies":{"coffeescript":"^1.12.7"},"_npmOperationalInternal":{"tmp":"tmp/doxx-handlebars-helper_1.0.1_1616183035004_0.5047201525787863","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-03-19T19:32:09.165Z","modified":"2026-01-20T12:07:35.366Z","1.0.0-rename-95f921468d61e38779bb6e52dff18cadd2497fba":"2021-03-19T19:32:09.442Z","1.0.0":"2021-03-19T19:35:06.508Z","1.0.1-nested-changelogs-1af655aa5553e54df939b49a275b23e915bba12d":"2021-03-19T19:41:08.559Z","1.0.1":"2021-03-19T19:43:55.133Z"},"bugs":{"url":"https://github.com/balena-io-modules/doxx-handlebars-helper/issues"},"author":{"name":"Eugene Mirotin","email":"eugene@resin.io"},"license":"Apache-2.0","homepage":"https://github.com/balena-io-modules/doxx-handlebars-helper","repository":{"url":"git://github.com/balena-io-modules/doxx-handlebars-helper.git","type":"git"},"description":"Handlebars helper for smart partials import.","maintainers":[{"email":"accounts+npm@balena.io","name":"balena.io"},{"email":"page@balena.io","name":"page"}],"readme":"Handlebars helper for smart partials import.\n======================\n\n> Extracted from [doxx](https://github.com/balena-io-modules/doxx).\n\nThis is a very simple module that exposes a couple of convenience methods to render Handlebars templates by hand, and a \"smart partials\" helper.\n\n## `Handlebars`\n\nThe packaged Handlebars engine is exported as `Handlebars`\n\n## Utility methods\n\n### `compileTemplate(templateString)`\n\nA memoized version of `Handlebars.compile`\n\n### `render(template, context)`\n\nCompiles the template and renders it to a string with the given context.\nUses the memoized `compileTemplate`.\n\n### `getPartial(partialName)`\n\nFind the partial with the given name (the partial must be previously registered) and returns compiled template for it.\nUses the memoized `compileTemplate`.\n\n### `getBestPartial(prefix, options, separator = '/')`\n\nLoops through an array of `options` looking for partials named `\"#{prefix}#{separator}#{option}\"`. Returns the first match as compiled template.\nReturns `undefined` if no matches found.\nUses the memoized `compileTemplate`.\n\nExample: `getBestPartial('some/folder', [ 'specificPartial', 'defaultPartial' ])`\nwill first check for `some/folder/specificPartial` and then for `some/folder/defaultPartial` and return the compiled template for the first existing partial.\n\n**Special JSON partials handling.** For convenience multiple partials can be combined under a single JSON partial. To use this feature that special combined partial name must end with `.json` (if your partials are imported from the filesystem this usually means that the file should have double extension, like `some/file.json.part`).\nThe partial is parsed and it should result in an object whose keys are treated as search partial names. In this case the `separator` parameter is ignored.\n\nThis is useful when you have lots of small (usually one-line) partials — instead of a folder with hundreds of files in it you can have a single JSON file.\n\n## `createImportHelper(options)`\n\nThis is the main feature of the module. The function creates a helper (_but does not register it_) that can be called like that:\n\n`{{ import \"prefix\" }}`.\n\nThis helper will search for partials with their names starting with `prefix` (using `getBestPartial`). The options must be specified in the specific field on the helper execution context.\n\nThe options are:\n\n`importName`, default `'import'`. Used in exceptions and log message to identify the helper.\n\n`beforeRun`, default `null`. If a function is passed it will be called before each helper call. A good place to do some checks and log things / throw errors.\n\n`partialsSearchFieldName`, default `'$partials_search'`. The name of the property on the execution context where the search order is defined (corresponds to the `options` parameter of the `getBestPartial` method).\n\n`defaultPartialName`, default `'_default'`. The name of the partial to be checked if not partials from `partialsSearchFieldName` are found.\n\n`contextFieldName`, default `'$variables'`. Used for reporting only. If set and no partials are found the value of this field from the execution context is included into the exception message.\n\n## `registerHelper(options)`\n\nCreates the import helper and registers it with Handlebars under `options.importName`. `options` are the same described above.\n\n## `registerConsolidate(consolidate, options)`\n\nConvenience method if you use `consolidate` to render your handlebars templates. This calls `registerHelper` and then passes the reference to packaged `Handlebars` to `consolidate`.\n\n\n\nLicense\n-------\n\nThe project is licensed under the Apache 2.0 license.\n","readmeFilename":"README.md"}