{{hr}} Handlebars helper. Adds `<hr>` tags to generated HTML. Great for prototyping.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE-MIT
README.md
index.js
package.json

README.md

{{hr}}

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

Installation

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

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

Alternatively, to register the helper explicitly in the Gruntfile:

grunt.initConfig({
  assemble: {
    options: {
      // the 'handlebars-helper-hr' npm module must also be listed in
      // devDependencies for assemble to automatically resolve the helper
      helpers: ['handlebars-helper-hr', 'foo/*.js']
    },
    files: {
      'dist/': ['src/templates/*.hbs']
    }
  }
});

Usage

With the helper registered, you may now begin using it in your templates.

{{hr}}
{{hr class="my-hr-class"}}

Renders to:

<hr>
<hr class="my-hr-class">

Author

onokumus

License and Copyright

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