helper-hybrid

0.2.2 • Public • Published

helper-hybrid Build Status NPM version

Handlebars helpers to work for both, markdown and html output.

Purpose

This library solves a common problem for me:

Writing documentation in (GitHub flavored) markdown with extended markdown syntax, which can then be used in a nice formatted way in Html, but at the same time a GitHub markdown compliant output should be generated.

Installation

Install with npm

npm install handlebars-hybrid --save

Usage

var Handlebars = require( 'handlebars' );
var hbHybrid = require('helper-hybrid');
 
// enable the html path
hbHybrid.init( 'html' ).register( Handlebars, {} );
 
// or enable the markdown path
hbHybrid.init( 'markdown' ).register( Handlebars, {} );

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

Stefan Walther

License

Copyright © 2015 Stefan Walther Released under the MIT license.


This file was generated by verb-cli on June 23, 2015.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.2
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.2.2
    1

Package Sidebar

Install

npm i helper-hybrid

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • stefanwalther