bminer / node-blade

Blade - HTML Template Compiler, inspired by Jade & Haml
Other
320 stars 28 forks source link

will blade support meteor 0.40 ? there're many template api enhance #84

Closed crapthings closed 12 years ago

crapthings commented 12 years ago

https://github.com/meteor/meteor/wiki/New-Template-API

https://groups.google.com/forum/?fromgroups#!topic/meteor-talk/mwtsEG3wPYY%5B1-25%5D

Spark is a live page update engine -- it's the machinery that you put underneath a templating system like Handlebars to make it reactive. Most people will probably not use Spark directly; they'll use a templating system built on top of it. It is a rewrite of the old liveui package and will replace the old Meteor.ui.render / Meteor.ui.chunk / Meteor.ui.listChunk API with a new, more powerful and general API. Spark is designed to be totally separable from the rest of Meteor so that you could use it instead of/alongside jquery in any app you please. Spark and all its dependencies come to ~8k minified and gzipped (at least for modern browsers that have querySelectorAll -- old browsers will also need something like Sizzle.)

bminer commented 12 years ago

Yes. Once Meteor 0.4.0 is released, I will look into this new API and make it work with Blade.

bminer commented 12 years ago

@crapthings - It looks like Spark is built right into Meteor. Do you know if Spark can be downloaded and used independently of Meteor?

crapthings commented 12 years ago

https://github.com/meteor/meteor/tree/master/packages/spark sorry i'havent try yet, and really don't know it can be used independently? and i've never used default template engine handlebar.

i'm not going to use meteor without blade before u release next update, i'm so lame haha.

bminer commented 12 years ago

Working on this over the weekend. :) Thanks for your patience!

AngryLoki commented 12 years ago

Meteor 0.5 is out with a lot of new features.

bminer commented 12 years ago

Hey, everyone! Blade 3.0 alpha versions have been released. Note: chunks are now deprecated; use isolates instead. Also, use foreach block instead of using chunks with the old Meteor.ui.listChunk function.

If anyone runs into any problems or has any questions about the new Meteor/Spark support, please let me know.

Blade + Spark integration is far from complete, and there will be many more changes coming in the next few weeks; hopefully, none of them will further affect your Blade templates. For example, "constant" blocks and some sort of element preservation feature will be available soon.