https://github.com/helpers/handlebars-helper-br
{{br}} Handlebars helper. Adds `<br>` tags to generated HTML. Great for prototyping.
https://github.com/helpers/handlebars-helper-br
Last synced: 9 months ago
JSON representation
{{br}} Handlebars helper. Adds `<br>` tags to generated HTML. Great for prototyping.
- Host: GitHub
- URL: https://github.com/helpers/handlebars-helper-br
- Owner: helpers
- License: mit
- Created: 2013-12-12T18:25:36.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2022-09-06T16:21:44.000Z (over 3 years ago)
- Last Synced: 2025-02-10T22:35:24.338Z (11 months ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 1
- Watchers: 6
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# {{br}} [](http://badge.fury.io/js/handlebars-helper-br)
> Adds `
` tags to generated HTML. Great for prototyping.
## Installation
Use [npm](npmjs.org) to install the package: `npm i handlebars-helper-br`.
## Register the helper
The easiest way to register the helper with [Assemble](https://github.com/assemble/assemble) is to add the module to `devDependencies` and `keywords` in your project's package.json:
```json
{
"devDependencies": {
"handlebars-helper-br": "*"
},
"keywords": [
"handlebars-helper-br"
]
}
```
Alternatively, to register the helper explicitly in the Gruntfile:
```javascript
grunt.initConfig({
assemble: {
options: {
// the 'handlebars-helper-br' npm module must also be listed in
// devDependencies for assemble to automatically resolve the helper
helpers: ['handlebars-helper-br', 'foo/*.js']
},
files: {
'dist/': ['src/templates/*.hbs']
}
}
});
```
## Usage
With the helper registered, you may now begin using it in your templates.
```html
{{br 5}}
```
Renders to:
```html
```
## Author
**Jon Schlinkert**
+ [github/jonschlinkert](http://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
## License and Copyright
Licensed under the [MIT License](./LICENSE-MIT)
Copyright (c) Jon Schlinkert, contributors.