-
Notifications
You must be signed in to change notification settings - Fork 140
[Question] Standalone usage (in combination with bound-templates.js?!) #301
Comments
HTMLBars isn't ready for standalone usage yet. There's a substantial rewrite happening in this PR: #282. I don't think that PR includes built in data bindings, but it does provide the right primitives to let you integrate with your own data binding layer. I'd like to revisit this question once it lands. |
@asciidisco look at the tests in #282 for examples of how you would update the template. |
@mmun I am LITERALLY waiting on the edge of my seat to hear your re-visitation of this question :P |
It should be ready in around 6 weeks, when we intend to merge the glimmer branch into Ember. |
I am using marionette and I can use HTMLBars as standalone.
It is only 'usage' not integration. Paul |
Heya @mmun a little Tweety bird brought wind of a certain merge having taken place recently :P |
The rewrite was much larger in scope than I expected and we're all quite busy with the Ember integration so I don't think HTMLBars will be stabilizing soon. |
@mmun Do you guys have a need and/or a desire for contributors? Waiting for this is like waiting for Christmas, all the presents, nicely wrapped, just waiting for you under the DOM tree. |
@matthewrobb Yes, always. Please make an issue if you have a question or suggestion about the architecture. |
@devel-pa data binding works too? |
What's the status on this now ? |
Hi there,
I´ve used handlebars for quite some time now in various combinations (with Backbone, Ampersand, in Node, etc.) & thought that I might should give
htmlbars
a spin, by upgrading a tiny ampersand demo application with already existing handlebars templates.And after some hard time wiring all the pieces together I actually got it running, even with precompiled templates on the server. Everything works as expected, the string concat monster is gone & the pure DOM beast is unleashed.
What does not work as expected, is the data binding. I first thought that you would get this with
htmlbars
for free & tried this naive approach (hoping for some magic to kick in):The initial render happened, but none of the updates to the
data
object made it to my screen.Then after watching a video (from EmberConf I guess), I learned that the data binding stuff lives in
bound-templates.js; I first tried to install it via
npm
, but it seems that it is not published yet. I eventually got it running in my demo page, but without any effect (and it actually forced me to load thehtmlbars-compiler
on that page, which I do not want, because precompiling FTW).So, basically my question is, am I missing something really obvious here?
Is the data binding component really not a part of
htmlbars
?If so, is using
bound-templates
the right way to go?If so, I would really appreciate an example.
Thank you in advance.
Cheers
Sebastian
The text was updated successfully, but these errors were encountered: