Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fumanchu - A supported Handlebar + Handlebars-Helpers together! #419

Open
jaredwray opened this issue Sep 23, 2023 · 4 comments
Open

Fumanchu - A supported Handlebar + Handlebars-Helpers together! #419

jaredwray opened this issue Sep 23, 2023 · 4 comments

Comments

@jaredwray
Copy link

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

@sergehuber
Copy link

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

@jaredwray
Copy link
Author

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

@hkjeffchan
Copy link

Thanks for the library. Why is this called fumanchu?

@jaredwray
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants