TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

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

78 pointsby machtyover 12 years ago

15 comments

spullaraover 12 years ago
Why do people do this? Obfuscating the HTML seems like the worst of both worlds. Either use a component model that abstracts it away or use HTML so you can see what is going on. Also, get your code out of the view. Has the world gone mad?
评论 #5247089 未加载
评论 #5247058 未加载
yefim323over 12 years ago
So now we have Emblem.js that is compiled to Handlebars.js that can then be compiled straight to JavaScript, that is finally rendered as HTML. When will the madness stop?
评论 #5246624 未加载
评论 #5246620 未加载
评论 #5246645 未加载
walkonover 12 years ago
Interesting, but I really do not like the implied HTML tags (+ blocking via indentation) going on there. Mentally parsing HTML isn't that bad for someone with a bit of experience. This would add a new wrinkle (i.e. friction) to design.
评论 #5246983 未加载
评论 #5246709 未加载
评论 #5246739 未加载
phildeschaineover 12 years ago
Still no template inheritance! I feel like I'm taking crazy pills when that's the one feature I need / care about and none of the newer template languages implement it. I'm spoiled from Django/Jinja2/twig.
评论 #5247005 未加载
评论 #5248254 未加载
评论 #5247044 未加载
becojoover 12 years ago
<p><pre><code> a concise, beautiful, and fully compatible templating alternative for Handlebars.js" [...] Introducing Emblem.js: a new templating language that compiles to Handlebars.js </code></pre> If it compiles to Handlebars, it's not an alternative to it, is it?
评论 #5246460 未加载
评论 #5246525 未加载
beernutzover 12 years ago
I really dig this kind of simplicity and clarity. The similarity to python really helps to keep things understandable.<p>Any chance of making this work with <a href="http://angularjs.org/" rel="nofollow">http://angularjs.org/</a> ?
评论 #5247029 未加载
st0pover 12 years ago
Looks nice, but why would I choose this over handlebars? Don't wanna sound negative but it looks like just another layer of indirection...
评论 #5246791 未加载
评论 #5246813 未加载
combataircraftover 12 years ago
What is the difference between Emblem and Jade?<p><a href="http://jade-lang.com/" rel="nofollow">http://jade-lang.com/</a>
评论 #5246764 未加载
评论 #5246713 未加载
评论 #5246707 未加载
randallover 12 years ago
Everyone who doesn't like HTML template languages is going to eventually mention Zencoding. Note: They changed the name to Emmet, and it's still actively maintained and works with Sublime, et. al.<p><a href="http://emmet.io/" rel="nofollow">http://emmet.io/</a><p>If you find Zencoding anywhere, it's outdated and sucky.
mtsmith85over 12 years ago
I'm really excited to watch this come to further fruition. Alex gave a great quick demo at the last NY Ember.js meetup and I was really impressed. I'm a big fan of Handlebars but really appreciate the cleaner syntax.
denysoniqueover 12 years ago
Before I had to make my own jade-handlebars Meteor package. I hope that someone will quickly make a Emblem.js package for Meteor.
评论 #5246821 未加载
sagen12over 12 years ago
Where can I find an example of using it in Node for precompiling templates to html or use it instead of jade?
abhishekdeltaover 12 years ago
Yet another templating language! I really don't see why this is any better than Handlebars itself, other than having lesser number of characters. C'mon ppl, developers are not that lazy!
评论 #5246889 未加载
评论 #5246981 未加载
zapharover 12 years ago
An html dsl is not a templating language. It's something else that you can use to solve a similar problem. Why do people keep calling them that?
JiPiover 12 years ago
Wow, I read 'Ember.js'...:)
评论 #5246809 未加载