handlebars-helpers icon indicating copy to clipboard operation
handlebars-helpers copied to clipboard

Fumanchu - A supported Handlebar + Handlebars-Helpers together!

Open jaredwray opened this issue 2 years ago • 4 comments
trafficstars

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

jaredwray avatar Sep 23 '23 21:09 jaredwray

Thanks for the project but I need the helpers separate, is there a way to achieve that ?

sergehuber avatar Oct 02 '23 09:10 sergehuber

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

jaredwray avatar Oct 02 '23 18:10 jaredwray

Thanks for the library. Why is this called fumanchu?

hkjeffchan avatar Oct 14 '23 09:10 hkjeffchan

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

jaredwray avatar Oct 14 '23 14:10 jaredwray