{"_id":"helper-repeat","_rev":"7-f0902b1349809c249e9dfbb7811fc4e4","name":"helper-repeat","description":"Repeat the encapsulated block of content _n_ times.","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"helper-repeat","version":"0.1.0","description":"Repeat the encapsulated block of content _n_ times.","homepage":"https://github.com/helpers/helper-repeat","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/assemble/helper-repeat.git"},"bugs":{"url":"https://github.com/helpers/helper-repeat/issues"},"licenses":[{"type":"MIT","url":"https://github.com/helpers/helper-repeat/blob/master/LICENSE-MIT"}],"devDependencies":{"assemble-internal":"~0.2.0"},"keywords":["helper","mixin","handlebars helper","underscore mixin","filter","template filter","swig filter","lodash","underscore","convenience methods"],"_id":"helper-repeat@0.1.0","dist":{"shasum":"f7f143156e049dd44627bdd53cb26dc6b20e2e68","tarball":"https://registry.npmjs.org/helper-repeat/-/helper-repeat-0.1.0.tgz","integrity":"sha512-BJCc4WcayjbrduEAjpg9aDf+QcHwviAwVOalZZCyCxRW0ApdNtHYs6OI97O1hqD4u0wImisLu8T7xcK05YoE6A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8qQBzuTH1NGy0GpM6mNB+BfDTxvgdMaK5GM7l/w15AAiBYYS7FG8g7lvPhv51J0aLkfO66re7JkHtnvug7v8gBSA=="}]},"_from":".","_npmVersion":"1.2.25","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}]}},"readme":"# {{repeat}} [![NPM version](https://badge.fury.io/js/helper-repeat.png)](http://badge.fury.io/js/helper-repeat)\r\n\r\n> Repeat the encapsulated block of content _n_ times.\r\n\r\n## Quickstart\r\nIn the root of your project, run the following in the command line:\r\n\r\n```bash\r\nnpm i helper-repeat --save-dev\r\n```\r\n\r\n## Usage\r\n\r\n```handlebars\r\n{{#repeat '10'}}\r\n   {{> button }}\r\n{{/repeat}}\r\n```\r\n\r\n\r\n## Usage in Assemble\r\n\r\nIn your Gruntfile, simply add `helper-repeat` to the `helpers` property in the [Assemble](http://assemble.io) task or target options:\r\n\r\n```javascript\r\ngrunt.initConfig({\r\n  assemble: {\r\n    options: {\r\n      helpers: ['helper-repeat']\r\n    }\r\n    ...\r\n  }\r\n});\r\n```\r\n\r\nWith that completed, you may now being using the `{{repeat}}` helper in your Assemble project.\r\n\r\n\r\n## Options\r\n\r\n### task options\r\nOptions can be set in your Gruntfile, in a custom property in the Assemble task or target options:\r\n\r\n```javascript\r\ngrunt.initConfig({\r\n  assemble: {\r\n    options: {\r\n      number: {\r\n        foo: 10,\r\n        bar: 5\r\n      }\r\n    }\r\n    ...\r\n  }\r\n});\r\n```\r\n\r\nExample usage with custom properties:\r\n\r\n```handlebars\r\n---\r\nnumber:\r\n  foo: <%= number.foo >\r\n  bar: <%= number.bar >\r\n---\r\n\r\n{{#repeat number.foo}}\r\n   {{> foo-button }}\r\n{{/repeat}}\r\n\r\n\r\n{{#repeat number.bar}}\r\n   {{> bar-button }}\r\n{{/repeat}}\r\n```\r\n\r\n\r\n\r\n## Author\r\n\r\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\r\n+ [github/jonschlinkert](http://github.com/jonschlinkert)\r\n\r\n\r\n## License and Copyright\r\n\r\nLicensed under the [MIT License](./LICENSE-MIT)\r\nCopyright (c) Jon Schlinkert, contributors.","maintainers":[{"email":"brian.woodward@gmail.com","name":"doowb"},{"email":"github@sellside.com","name":"jonschlinkert"}],"time":{"modified":"2022-06-18T20:08:20.674Z","created":"2013-09-16T20:48:15.278Z","0.1.0":"2013-09-16T20:48:17.048Z"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"https://github.com/assemble/helper-repeat.git"},"homepage":"https://github.com/helpers/helper-repeat","keywords":["helper","mixin","handlebars helper","underscore mixin","filter","template filter","swig filter","lodash","underscore","convenience methods"],"bugs":{"url":"https://github.com/helpers/helper-repeat/issues"},"readmeFilename":"README.md"}