{"name":"template-helper-apidocs","description":"Template helper for automatically generating API docs from code comments. This is an async helper that is only compatible with applications built with Template, like Verb, Assemble, or Template directly.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/template-helper-apidocs","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/jonschlinkert/template-helper-apidocs"},"bugs":{"url":"https://github.com/jonschlinkert/template-helper-apidocs/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"async":"^0.9.0","extend-shallow":"^1.1.2","globby":"^1.2.0","is-glob":"^1.1.3","js-comments":"^0.3.9","relative":"^2.0.0","template-utils":"^0.5.1"},"devDependencies":{"handlebars":"^3.0.0","helper-resolve":"^0.2.0","lodash":"^3.3.0","should":"^5.0.1","template":"^0.10.1","verb":"^0.6.2"},"keywords":["api","api-docs","apidocs","code","comment","comments","docs","documentation","generate","helper","helpers"],"_id":"template-helper-apidocs@0.1.0","_shasum":"a8cecad8abaf21c7b3d1b69bb4bcf4ecee2175e2","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a8cecad8abaf21c7b3d1b69bb4bcf4ecee2175e2","tarball":"http://registry-npm.ywwl.com/template-helper-apidocs/download/template-helper-apidocs-0.1.0.tgz","integrity":"sha512-BrVS5UnTAQAFH2dAq7trT/3Fbob7DsEPUfhmxwRusE1ep3x9/lsKS7WncwK6Phkv2U00/XuLCZur1MxmPHCldg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDP2kFxAcg3Wvo+0Y/H2OfkRt9N/orcmZjlarSDyIO8pQIgOvk7haaO8AKJnladgO0osplL9fXCdwcHegEO2X8L+RE="}],"size":3414,"noattachment":false,"key":"/template-helper-apidocs/-/template-helper-apidocs-0.1.0.tgz"},"directories":{},"readme":"# template-helper-apidocs [![NPM version](https://badge.fury.io/js/template-helper-apidocs.svg)](http://badge.fury.io/js/template-helper-apidocs)  [![Build Status](https://travis-ci.org/helpers/template-helper-apidocs.svg)](https://travis-ci.org/helpers/template-helper-apidocs)\n\n> Template helper for automatically generating API docs from code comments. This is based on helper-apidocs, but specifically for applications built-with the Template library.\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i template-helper-apidocs --save\n```\n\n## Table of contents\n\n<!-- toc -->\n\n* [Docs](#docs)\n  - [Registering the helper](#registering-the-helper)\n    + [template](#template)\n    + [assemble](#assemble)\n    + [verb](#verb)\n    + [handlebars](#handlebars)\n    + [Lo-Dash and underscore](#lo-dash-and-underscore)\n* [Example usage](#example-usage)\n* [Other awesome libs](#other-awesome-libs)\n* [Contributing](#contributing)\n* [Running tests](#running-tests)\n* [Author](#author)\n* [License](#license)\n\n_(Table of contents generated by [verb](https://github.com/assemble/verb))_\n\n<!-- tocstop -->\n\n## Docs\n\n### [apidocs](index.js#L35)\n\nGenerate API docs from code comments for any JavaScript files that match the given `patterns`. Note that **only code comments with `@api public` will be rendered.**\n\n**Params**\n\n* `patterns` **{String}**: Glob patterns for files with code comments to render.\n* `options` **{Object}**: Options to pass to [js-comments](https://github.com/jonschlinkert/js-comments).\n* `returns` **{String}**: Markdown-formatted API documentation\n\n**Example**\n\n```js\napidocs(\"index.js\");\n```\n\n_(this section was generated using this helper)_\n\n### Registering the helper\n\n> This helper should work with any template engine, here are a few examples\n\n#### template\n\nRegister the helper with [Template](https://github.com/jonschlinkert/template), allowing it to be used with any template engine.\n\n```js\ntemplate.helper('apidocs', require('template-helper-apidocs'));\n```\n\n#### assemble\n\nRegister the helper with [assemble](http://assemble.io)v0.6.x:\n\n```js\nvar assemble = require('assemble');\nassemble.helper('apidocs', require('template-helper-apidocs'));\n```\n\n#### verb\n\nRegister the helper with [verb](https://github.com/assemble/verb):\n\n```js\nvar verb = require('verb');\nverb.helper('apidocs', require('template-helper-apidocs'));\n```\n\n#### handlebars\n\nUsage with [handlebars](http://www.handlebarsjs.com/)\n\n```js\nvar handlebars = require('handlebars');\nhandlebars.registerHelper('apidocs', require('template-helper-apidocs'));\n```\n\n#### Lo-Dash and underscore\n\nTo use the helpers with [Lo-Dash](https://lodash.com/) or [underscore](http://underscorejs.org):\n\n```js\n// as a mixin\n_.mixin({apidocs: apidocsHelper});\n_.template('<%= _.apidocs(\"fixtures/*.js\") %>', {});\n\n// passed on the context\n_.template('<%= apidocs(\"fixtures/*.js\") %>', {apidocs: apidocsHelper});\n\n// as an import\nvar settings = {imports: {apidocs: apidocsHelper}};\n_.template('<%= apidocs(\"fixtures/*.js\") %>', {}, settings);\n```\n\n***\n\n## Example usage\n\nWith Lo-Dash or Underscore:\n\n```js\n<%= apidocs(\"index.js\") %>\n```\n\nWith Handlebars:\n\n```handlebars\n{{apidocs \"index.js\"}}\n```\n\nWith Verb (lo-dash, with special delimiters to avoid delimiter collision in markdown docs):\n\n```js\n{%= apidocs(\"index.js\") %}\n```\n\n***\n\n## Other awesome libs\n\n* [assemble](http://assemble.io): Static site generator for Grunt.js, Yeoman and Node.js. Used by Zurb Foundation, Zurb Ink, H5BP/Effeckt,… [more](http://assemble.io)\n* [handlebars-helpers](https://github.com/assemble/handlebars-helpers): 120+ Handlebars helpers in ~20 categories, for Assemble, YUI, Ghost or any Handlebars project. Includes… [more](https://github.com/assemble/handlebars-helpers)\n* [js-comments](https://github.com/jonschlinkert/js-comments): Parse JavaScript code comments and generate API documentation.\n* [parse-comments](https://github.com/jonschlinkert/parse-comments): Parse code comments from JavaScript or any language that uses the same format.\n* [template](https://github.com/jonschlinkert/template): Render templates using any engine. Supports, layouts, pages, partials and custom template types. Use template… [more](https://github.com/jonschlinkert/template)\n* [template-helpers](https://github.com/jonschlinkert/template-helpers): Generic JavaScript helpers that can be used with any template engine. Handlebars, Lo-Dash, Underscore, or… [more](https://github.com/jonschlinkert/template-helpers)\n* [verb](https://github.com/assemble/verb): Documentation generator for GitHub projects. Extremely powerful, easy to use, can generate anything from API… [more](https://github.com/assemble/verb)\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/helpers/template-helper-apidocs/issues/new)\n\nTo request or contribute a helper to the [github.com/helpers](https://github.com/helpers) org, please read [this contributing guide](https://github.com/helpers/requests) to get started.\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\nSee [the tests](./test.js) for actual usage examples.\n\n## Author\n\n**Jon Schlinkert**\n\n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2014-2015 Jon Schlinkert\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 29, 2015._\n","publish_time":1425808906726,"_cnpm_publish_time":1425808906726,"dist-tags":{"latest":"0.4.4"}}