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

fix issue #49 #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix issue #49 #50

wants to merge 1 commit into from

Conversation

tomatohf
Copy link

@tomatohf tomatohf commented Apr 8, 2015

Hi Mark,

We have used your great Scala implementation of Handlebars in our product qiaobutang.com , and we'd like to join to make it better ~ :-)

BTW, it's glad to extend the Binding interface, we implemented a new Binding to fill json format values and avoid runtime reflection.

@timcharper
Copy link
Collaborator

@tomatohf I'm glad to hear you used the Binding interface; I was responsible for those changes and have recently submitted a pull-request to include my play-json integration: SpinGo@4a74834

With which JSON library did you integrate?

Being able to bind to a JSON AST allowed us to seamlessly render handlebars templates in both JS land and Scala land, and it worked out relatively well.

Nice catch on your fix, BTW.

@tomatohf
Copy link
Author

@timcharper We integrated lift-json. And we are also using handlebars as templates in both JS and Scala.

@timcharper
Copy link
Collaborator

Great; do you have the code somewhere? I could help review it and get it ready for merge. The play-json integration was merged into handlebars primary.

@tomatohf
Copy link
Author

tomatohf commented Sep 1, 2015

I have the code in our private github repository.
It seems there would be another pull request ? If so, could you please point me out where to put the code.
Or, other way preferred?

@timcharper
Copy link
Collaborator

You could just post a gist

Sent from my iPhone

On Sep 1, 2015, at 08:18, Tomato [email protected] wrote:

I have the code in our private github repository.
It seems there would be another pull request ? If so, could you please point me out where to put the code.
Or, other way preferred?


Reply to this email directly or view it on GitHub.

@tomatohf
Copy link
Author

tomatohf commented Sep 1, 2015

I just found play-json under the addon folder ...

@tomatohf
Copy link
Author

tomatohf commented Sep 1, 2015

ok, I will add a gist

@tomatohf
Copy link
Author

tomatohf commented Sep 1, 2015

@timcharper
Copy link
Collaborator

Well, lol here we are 5 months later!

I merged your gist and made a few modifications to it; it's here: https://github.com/mwunsch/handlebars.scala/tree/lift-json

Could you write some tests for it? Just mimic the tests for the play-json bindings. Then we'll be good to merge it in.

Thanks!

@tomatohf
Copy link
Author

Sure, I'm glad to add some tests just like what play-json bindings does in addons directory.
While would it be better do that in a new pull request based on the lift-json branch?

@timcharper
Copy link
Collaborator

@tomatohf sure! Pull request to lift-json branch would be optimal. Or, you could just amend the commit from the lift-json branch and send a pull request for master.

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

Successfully merging this pull request may close these issues.

2 participants