Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
handlebars-helper-repeat
Advanced tools
Repeat the encapsulated block of content n times.
If you find a bug or have a feature request, please create an issue.
Use npm to install the package: npm i handlebars-helper-repeat
.
The easiest way to register the helper with Assemble is to add the module to devDependencies
and keywords
in your project's package.json:
{
"devDependencies": {
"handlebars-helper-repeat": "*"
},
"keywords": [
"handlebars-helper-repeat"
]
}
Alternatively, to register the helper explicitly in the Gruntfile:
grunt.initConfig({
assemble: {
options: {
// the 'handlebars-helper-repeat' npm module must also be listed in
// devDependencies for assemble to automatically resolve the helper
helpers: ['handlebars-helper-repeat', 'foo/*.js']
},
files: {
'dist/': ['src/templates/*.hbs']
}
}
});
{{#repeat 10}}
{{> button }}
{{/repeat}}
Using @index
in templates:
{{#repeat 500}}
<div id="example-{{@index}}">
<button>Button {{@index}}</button>
</div>
{{/repeat}}
Besides the handlebars-helpers library, which includes more than 120 helpers, Here are some related projects you might be interested in from the Assemble core team.
<br>
tags to generated HTML. Great for prototyping.<style>...</style>
tags of the rendered HTML, but you may alternatively define a destination path using the dest
hash option of the helper.Visit assemble.io/plugins for more information about Assemble plugins.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt, and build the documentation with grunt-readme.
Jon Schlinkert
Brian Woodward
Copyright (c) 2014 Jon Schlinkert, contributors. Released under the MIT license
This file was generated by grunt-readme on Sunday, January 12, 2014.
FAQs
Handlebars block helper for repeating whatever is inside the block _n_ times.
The npm package handlebars-helper-repeat receives a total of 818 weekly downloads. As such, handlebars-helper-repeat popularity was classified as not popular.
We found that handlebars-helper-repeat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.