Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Which javascript templating framework for mobile first designs?
2 points by technojunkie on Feb 27, 2013 | hide | past | favorite | 2 comments
I'm investigating the various JS templating frameworks to use for a Mobile First RWD.

The reason I want to use this is because this is within a corporate environment. It makes sense to use something that requires very little setup and is already supported by modern browsers. I also don't have access to database or JSON strings so everything must be stored locally and versioned through something like Git.

I'd love to go full-blown with a MVC framework but at this point it's overkill and I'm still a complete newb. This will serve as a prototype, mostly a proof of concept when it's finished. My main needs would be for templating common elements, like header, footer, content areas, etc.

If I can do something fast enough, I might be able to use this as a way to convince the overlords of the company to ditch trying to go with a CMS like CQ5, Teamsite, or another Java based system.



There is a Twig port in js: https://github.com/justjohn/twig.js/wiki that i've had some luck experimenting with. It doesn't support macros yet but given that it's in javascript I don't see why it should.

Also (and I hope I don't get downvoted because this is ugly) I have made basic templates work using ajax and this sprintf for js (http://www.diveintojavascript.com/projects/javascript-sprint...) but that may be far more basic than your environment would accept.


I've heard great things about mustache http://mustache.github.com/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: