Let’s talk about deprecating spacebars!
Originating from the discussion about adding nested expressions to spacebars here: https://github.com/meteor/meteor/pull/4101
It seems like Spacebars just keeps getting more complex while also adding less separation of concerns.
With that said:
Let’s deprecate spacebars and move towards writing
Blaze views directly like
JSX or a elegant JS API like
React's compiled output for example or instruct to use
I mean, shouldn’t we eat our own dog food with the whole
In addition, if MDG deprecates spacebars, it can be supported as a package, while any transpiler (like jade) could just macro on top of the JS API allowing for more diversity from templating packages
And I’m not saying the
Blaze API isn’t enough, I just think, if we considered removing/deprecating spacebars and making
Blaze first class method of writing views/components a second look should be taken on the existing API (although I think all the APIs are great). I think JSX is really important here in terms of elegance, but a fall-back API like
htmljs would be nice. Maybe this is a better target for the upcoming
node merger once ES6 lands.