handlebars-helpers
handlebars-helpers copied to clipboard
Fumanchu - A supported Handlebar + Handlebars-Helpers together!
Hi all. I wanted to post here that I know people are busy and sometimes not able to maintain these packages. After waiting a while to see if this project would be handed off or maintained again I created @jaredwray/fumanchu. This combines Handlebars + Handlebars-Helpers together into a single package.
Just npm i @jaredwray/fumanchu --save
Then use it in your code like so:
var handlebars = require('@jaredwray/fumanchu');
var template = handlebars.compile('{{#if (eq foo "bar")}}<p>Foo is bar</p>{{/if}}');
var html = template({foo: 'bar'});
console.log(html);
Features
- It is maintained monthly!
- It has 100% code coverage
- It is a drop in replacement for your handlebars code as it contains Handlebars!
Check it out here: https://github.com/jaredwray/fumanchu
Thanks for the project but I need the helpers separate, is there a way to achieve that ?
Thanks for the project but I need the helpers separate, is there a way to achieve that ?
Hello. I just set the export to make this happen. Here you go https://www.npmjs.com/package/@jaredwray/fumanchu#using-handlebars-helpers
Thanks for the library. Why is this called fumanchu?
Thanks for the library. Why is this called fumanchu?
Just like handlebars is a mustache style so is fumanchu: https://en.wikipedia.org/wiki/Fu_Manchu_moustache