Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Questions about the future of TemplateBinding #199

Open
benogle opened this issue Oct 29, 2014 · 5 comments
Open

Questions about the future of TemplateBinding #199

benogle opened this issue Oct 29, 2014 · 5 comments

Comments

@benogle
Copy link
Contributor

benogle commented Oct 29, 2014

We're planning on using this TemplateBinding project in Atom. We're going to lean pretty heavily on this by exposing it to package authors and encouraging its use in all packages that need a UI. I had a couple questions:

  • How stable is the syntax? Are there drastic changes coming?
  • Template binding seems to be a 'prolyfill'. What's the probability of it landing in Chrome with similar syntax?
  • Do you think using polymer's template binding is a good idea for something like atom?

I'm basically trying to answer the questions: "will this bite us in a year?", and, "are we betting on the right horse?".

For some background, we would like to use native browser API's wherever possible as a way to future proof, get the best performance, and limit the learning curve. Using the polymer polyfills seems like a no brainer given these goals, but, admittedly, this TemplateBinding package makes me a little nervous.

@ebidel @addyosmani particularly interested in your opinions.

@peterwmwong
Copy link

I'm also very interested in hearing from the Polymer team where they see TemplateBinding fitting in the web platform.

@rafaelw
Copy link
Contributor

rafaelw commented Nov 3, 2014

There is no plan for implementing TemplateBinding natively in blink ATM, and no current discussion in standards groups that I'm aware of. @jmesserly & @sjmiles may have comments about how stable the syntax is likely to be.

@tomalec
Copy link

tomalec commented Nov 26, 2014

Another question that popped up: what is the future of TemplateBinding in regards of Polymer >= 0.8? (as it does not work out of the box Polymer/polymer#966)

Will it be separated from polymer.html bundle?
Will it be supported at all, or deprecated in favor of binding features inside polymer-element?

I have already started small discussion here: https://groups.google.com/forum/#!topic/polymer-dev/OP8C4-LR_0E

@warpech
Copy link

warpech commented Dec 3, 2014

After previewing Polymer 0.8 I am worried that template engine will get tightly coupled with Polymer, making it impossible to be used standalone.

I would like to see a template engine that uses HTML Template element, Mustache-like syntax and two-way data binding available outside of Polymer. I created a fanpage TemplateBinding.org, where I present my usage of TemplateBinding. In case that becomes impossible with Polymer 0.8, I will try to maintain an alternative.

I really hope that Polymer 0.8 keeps it's modular structure and lets us use it's template engine standalone.

WDYT?

@benogle
Copy link
Contributor Author

benogle commented Dec 3, 2014

I would like to see a template engine that uses HTML Template element, Mustache-like syntax and two-way data binding available outside of Polymer.

We would like this for Atom as well. We've decided against TemplateBinding because of the non-standard global pollution. It's inevitable that we would have packages using different versions of some provided view framework. So, for a solution to work for us, we would need 0 global injection and proper node support.

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

No branches or pull requests

5 participants