Skip to content

{{br}} Handlebars helper. Adds `<br>` tags to generated HTML. Great for prototyping.

License

Notifications You must be signed in to change notification settings

helpers/handlebars-helper-br

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

{{br}} NPM version

Adds <br> tags to generated HTML. Great for prototyping.

Installation

Use npm to install the package: npm i handlebars-helper-br.

Register the helper

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-br": "*"
  },
  "keywords": [
    "handlebars-helper-br"
  ]
}

Alternatively, to register the helper explicitly in the Gruntfile:

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.

{{br 5}}

Renders to:

<br>
<br>
<br>
<br>
<br>

Author

Jon Schlinkert

License and Copyright

Licensed under the MIT License Copyright (c) Jon Schlinkert, contributors.

About

{{br}} Handlebars helper. Adds `<br>` tags to generated HTML. Great for prototyping.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  
  •  

Packages

No packages published