News for hackers. Stuff that matters.
Re:New MVC client side JavaScript framework - Serenade.js by haclifford on Monday January 30, 2012 @10:31AM (#3529121)
Doesn't seem particularly game-changing.

I do like the haml style templating though, anything like this exist standalone with coffeescipt not js syntax?

We currently use eco (https://github.com/sstephenson/eco), but that's standard html.

Re:New MVC client side JavaScript framework - Serenade.js by secoif on Monday January 30, 2012 @12:53PM (#3529788)
Stylus is an excellent contender. http://learnboost.github.com/stylus/

I'd vouch it makes haml look like someone took stylus code and spat random characters all over it. It's even got its own compass equivalent, nib: https://github.com/visionmedia/nib

Re:New MVC client side JavaScript framework - Serenade.js by jsavimbi on Monday January 30, 2012 @02:38PM (#3530293)
Stylus is for CSS, not HTML.
Re:New MVC client side JavaScript framework - Serenade.js by secoif on Tuesday January 31, 2012 @05:21PM (#3535473)
Oh wow, I remember looking at my post thinking: "something's wrong here, oh well." I actually meant Jade:

http://jade-lang.com/.

Jade makes HAML look like a dogs breakfast.

Re:New MVC client side JavaScript framework - Serenade.js by jsavimbi on Tuesday January 31, 2012 @07:06PM (#3535918)
You sir, are correct in that. Slim also merits a looking at, but I write everything [static] in Jade first and then transfer the output to whatever, yeah, JSP's. There's a significant performance hit from using non-HTML at run time, +40% in some cases, as was Haml back a couple of years ago. Probably a good reason why RoR adopted Sass yet shied away from Haml.
Re:New MVC client side JavaScript framework - Serenade.js by gregwebs on Saturday February 11, 2012 @03:21PM (#3580050)
The Ruby slim templates get compiled to an intermediate language (Temple). That is then compiled into an end form and everything is cached - the performance is all the same.

RoR didn't pick Haml because Haml abandons HTML. Take a look at the Hamlet language which give the best of both worlds. https://github.com/gregwebs/hamlet.js https://github.com/gregwebs/hamlet.rb

Re:New MVC client side JavaScript framework - Serenade.js by jfirebaugh on Monday January 30, 2012 @11:08AM (#3529269)
I just released a port of Slim with embedded CoffeeScript: https://github.com/jfirebaugh/skim

If you prefer HAML, check out https://github.com/9elements/haml-coffee

Re:New MVC client side JavaScript framework - Serenade.js by jnicklas on Tuesday January 31, 2012 @07:10AM (#3532911)
You can use Serenade pretty much as a static template engine if you want to. It's quite small (9k), so not a huge dependency.