Socket
Book a DemoInstallSign in
Socket

handlebars-helper-br

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

handlebars-helper-br

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

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

{{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

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

Keywords

assemble

FAQs

Package last updated on 12 Dec 2013

Did you know?

Socket

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.

Install

Related posts