Using Jade client-side with Backbone.js

1,125 views
Skip to first unread message

Vincent Mac

unread,
Apr 25, 2012, 3:36:57 AM4/25/12
to expre...@googlegroups.com
I was wondering if anybody had any thoughts about using Jade as the client-side templating language with Backbone.  I've started familiarizing myself with Backbone and haven't seen much mention of Jade.  Is there any particular reason why it is not being utilized for this?  

Are there any performance drawbacks to using Jade vs Underscore.js or Handlebars.js?  Or is the lack of mention purely due to the volume of Rails developers who are perhaps already familiar with Handlebars?

Bobby

unread,
Apr 25, 2012, 11:45:12 AM4/25/12
to expre...@googlegroups.com
Every thing went ok until I tested it in ie. It was 2 about a month ago so I forget the specifics but If I remember jade uses variable names that caused ie to choke. There were tickets for the problems on github. It sucked for me because i was about to hand over a website and then I had to go back and rewrite all the templates.


tjholowaychuk

unread,
Apr 25, 2012, 2:23:27 PM4/25/12
to expre...@googlegroups.com
personal preference really, that's why we have 50+ template engines out there.

Vincent Mac

unread,
Apr 25, 2012, 6:52:24 PM4/25/12
to expre...@googlegroups.com
TJ, out of curiosity, what do you use?

tjholowaychuk

unread,
Apr 26, 2012, 1:24:45 AM4/26/12
to expre...@googlegroups.com
mix of things depending on the project. For bigger projects that I know would
have many templates I'd go with Jade, for smaller ones I like some of the little
django/mustache-like engines, or for things like Kue etc that really dont 
need much I just use the dom, which is more often than not haha. So in many
cases no template engine at all just a .render() method
Reply all
Reply to author
Forward
0 new messages