Skip to content

Comment on Emblem.js: concise, indented alternative templating language for Handlebars.js

Comments

Looks nice, but why would I choose this over handlebars? Don't wanna sound negative but it looks like just another layer of indirection...

Mostly because mucking around with raw HTML is a pain, and very much error prone (missing closing tags, etc.). You can either spend the time learning the ins and outs of text editor shortcuts to make your HTML editing easier or you can spend the time working through another layer of abstraction (Emblem in this case).

Hmmm, after years of editing HTML and having lots of shortcuts in my muscle memory maybe I forgot that, so yeah that is a valid use case.

That's a good way of putting it.

After half-heartedly learning Zen Coding (aka Emmet), I realized most of the reasons I wanted to learn it were obviated by Haml.

My favorite feature is implicit Ember actions and bound attributes. http://emblemjs.com/syntax/#implicit-bind-attributes

That feature alone made my Ember templates vastly more readable.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.