News for hackers. Stuff that matters.
Re:Emblem.js: concise, indented alternative templating langu... by becojo on Tuesday February 19, 2013 @02:26PM (#5246446)

    a concise, beautiful, and fully compatible templating alternative for Handlebars.js"
    [...]
    Introducing Emblem.js: a new templating language that compiles to Handlebars.js
If it compiles to Handlebars, it's not an alternative to it, is it?
Re:Emblem.js: concise, indented alternative templating langu... by lukenyc on Tuesday February 19, 2013 @02:27PM (#5246460)
If Coffeescript is an alternative to Javascript, then yes. If not, no.
Re:Emblem.js: concise, indented alternative templating langu... by jacquesc on Tuesday February 19, 2013 @02:28PM (#5246473)
Exactly. Emblem.js is for people who love Haml / Slim / Jade and want to use that style of templating with Handlebars.js
Re:Emblem.js: concise, indented alternative templating langu... by mtsmith85 on Tuesday February 19, 2013 @02:41PM (#5246561)
It really fits into place if you're coming from one of those libraries. I only wish I could enable percent-sign indicators for HTML tags! (%h1 vs h1)
Re:Emblem.js: concise, indented alternative templating langu... by machty on Tuesday February 19, 2013 @02:52PM (#5246621)
%h1 is totally valid emblem syntax.

edit: it's optional, of course, but you have to use it if you need to use non-standard (read: unrecognized by emblem) html tags

Re:Emblem.js: concise, indented alternative templating langu... by mtsmith85 on Tuesday February 19, 2013 @03:37PM (#5246897)
Not sure how I missed that. It's a kick-ass little feature in my book, because while I appreciate the "implied HTML tags", I do find them easy to miss.
Re:Emblem.js: concise, indented alternative templating langu... by jeremyjh on Tuesday February 19, 2013 @02:37PM (#5246525)
It is not an alternative to a handlebars dependency, but it does mean you can write templates without writing any handlebars code. So it is an alternative to writing Handlebars templates, but not an alternative to using them.