gi / tilt-handlebars

A Tilt interface to the official JavaScript version of Handlebars.
MIT License
17 stars 5 forks source link

handlebars-helpers #2

Closed bluerouse closed 2 years ago

bluerouse commented 10 years ago

Hi, great work with this gem! I managed to include my handlebars-partials into an existing project, which did not work with handlebars until now. Really great, thanks! Now i wondered about one thing: I created some of those handlebars-templates with the npm-handlebar-helpers from assemlbe.io, therefore my question: Would it be possible to include those helpers on ruby-side, that tilt knows them and renders HTML correctly? Currently i got errors on views, where i used those helpers...

Many thanks for your help!

jimothyGator commented 10 years ago

Hello, thanks for reporting this. I've been in crunch mode at the day job, but I will take a look into this.

ptrikutam commented 7 years ago

Yes, thank you for putting together this gem! It's very helpful.

I realize it's been quite some time since this issue was opened, but was there any progress made on this front? Also happy to dig into it myself, but was just curious if anyone got further with including external helpers into tilt-handlebars.

jimothyGator commented 7 years ago

@ptrikutam Sorry, I haven't had much time to give this any TLC. But I will gladly accept pull requests. Unit tests are especially appreciated.

gi commented 2 years ago

@bluerouse @ptrikutam Do either of you have any follow up for this issue?

Both Ruby and JavaScript functions can now be added as helpers.

See https://github.com/gi/handlebars-ruby.

ptrikutam commented 2 years ago

Sorry, I can't remember exactly what I was working on when I posted this issue. I don't think we ended up continuing to use this library.

gi commented 2 years ago

Thanks for responding. No worries.