handlebars-hybrid

0.2.2 • Public • Published

handlebars-hybrid NPM version

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

Purpose

This library solve 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('handlebars-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 (c) 2015 Stefan Walther Released under the MIT license.


This file was generated by verb-cli on May 19, 2015.

Package Sidebar

Install

npm i handlebars-hybrid

Weekly Downloads

1

Version

0.2.2

License

MIT

Last publish

Collaborators

  • stefanwalther