7 ms·
a concise, beautiful, and fully compatible templating alternative for Handlebars.js" [...] Introducing Emblem.js: a new templating language that compile
by becojo 14y ago
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?
- lukenyc 14y agoIf Coffeescript is an alternative to Javascript, then yes. If not, no.
- jacquesc 14y agoExactly. Emblem.js is for people who love Haml / Slim / Jade and want to use that style of templating with Handlebars.js
- mtsmith85 14y agoIt 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)
- machty 14y ago%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
- mtsmith85 14y agoNot 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.
- jeremyjh 14y agoIt 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.