assemble-helper-breaklines
This helper allows you transform the regular breakline notation \n
, into html tag <br />
, if it's present on the data-json file.
Install
- Install the module and save to devDependcies
$ npm install assemble-helper-breaklines --save-dev
- Add the module name into the Gruntfile.js options
options: { helpers: ['*-helper-breaklines'] } }
- Enjoy
Usage
<p>{{breaklines textdata}}</p>
Example
JSON file with a regular breakline notation (\n)
Result
this helper 'helped me' a lot and I can use it EVERYWHERE!
Related info
- grunt-init-assemble: Initialize new Assemble projects, with example mixins, helpers, templates and data.
- handlebars-helpers
- Assemble's documentation
- assemble-less
- assemble-examples
Author
Copyright and license
Copyright 2013 Jon Schlinkert
Copyright and license
Copyright 2016 & MIT © Rolando Quintero