by franckcuny on 7/4/11, 11:45 AM with 66 comments
by mikemaccana on 7/4/11, 12:52 PM
An element that contains another element isn't a function. I don't see any reason to make it one.
If you want a templating language, why not use one, rather than having an unnecessary 'space dash greater than' to indicate elements are contained within each other?
by nzoschke on 7/4/11, 12:30 PM
But personally, Coffeescript -> Javascript -> HTML sounds way too indirect for my taste.
I've seen this patter a few too many times at work now: the new frontend guy loves HAML, and he uses it on a project, and the next couple guys that help maintain it hate it and rewrite everything in straight up HTML.
by alecbenzer on 7/4/11, 2:19 PM
I haven't looked at this too much, but I also find that templating languages often try to implement some elements of higher level programming languages, but often end up not having some of the features I want (I'm thinking specifically about liquid right now and it's apparent inability to let the designer declare arrays on their own, and its sort of awkward "filter" mechanism instead of just sticking to function calls, syntactically)
edit: well, actually, nevermind - now that I think about it liquid and haml/erb/etc are different things - liquid is trying to be a programming language and haml/erb are templating markups used with existing programming languages. I guess what I like about this is that it's just one consistent language - the markup parts and the dynamic parts are done via the same thing, as opposed to having a programming language embedded in a markup language
by etaty on 7/4/11, 2:25 PM
by coenhyde on 7/4/11, 12:54 PM
With the traction Coffeescript is getting I wouldn't be surprised to see it eventually execute directly inside v8 or similar, bypassing the javascript compilation altogether.
by lysol on 7/4/11, 1:00 PM
by tptacek on 7/4/11, 5:21 PM
by wallrat on 7/4/11, 12:12 PM
by jedschmidt on 7/4/11, 7:05 PM
https://github.com/jed/fab/blob/browser/demo.html
(I'm biased, but am a fan of making markup "just code".)
by johnlaudun on 7/4/11, 12:47 PM
by mtogo on 7/5/11, 3:11 PM
After opening it in Firefox, i find it ironic that something that has to do with web standards is so broken in a major browser.
by chetan51 on 7/4/11, 8:42 PM
<div class="content">
Please add that to the example on the landing page.by emehrkay on 7/4/11, 3:33 PM
by denysonique on 7/5/11, 12:06 AM
by anonymous on 7/4/11, 8:26 PM
by shimonamit on 7/4/11, 1:44 PM
by zentechen on 7/4/11, 11:55 PM
by chrisjsmith on 7/4/11, 12:33 PM