News for hackers. Stuff that matters.
Re:Emblem.js: concise, indented alternative templating langu... by combataircraft on Tuesday February 19, 2013 @03:01PM (#5246677)
What is the difference between Emblem and Jade?

http://jade-lang.com/

Re:Emblem.js: concise, indented alternative templating langu... by machty on Tuesday February 19, 2013 @03:13PM (#5246764)
afaik Jade can't be precompiled; all the parsing needs to happen in the Browser, whereas Handlebars (and therefore Emblem) can be precompiled so that browser processing is minimal. Also, for frameworks that heavily extend Handlebars, such as Ember.js, you'd miss out on a lot of features such as auto-updating templates if you didn't choose a language that compiled to Handlebars, i.e. Handlebars or Emblem.
Re:Emblem.js: concise, indented alternative templating langu... by nadaviv on Tuesday February 19, 2013 @07:55PM (#5248262)
It can. See the example at https://github.com/visionmedia/jade#a4
Re:Emblem.js: concise, indented alternative templating langu... by jacquesc on Tuesday February 19, 2013 @03:06PM (#5246707)
Similar syntax. Emblem.js compiles to Handlebars to make it ideal to use for client side templating and Ember.js