backbone js or knockout js as a web framework with jquery mobile
- by Dan
without trying to cause a mass discussion I would like some advice from the fellow users of stack overflow.
I am about to start building a mobile website that gets it data from JSON that comes from a PHP rest api.
I have looked into different mobile frameworks and feel that JQM will work best for us as we have the knowledge of jQuery even though a little large.
Currently at work however we are using jQuery for all our sites and realise that now we are building a mobile website I need to think about javascript frameworks to move us onto a more MV* approach, which I understand the benefits of and will bring much needed structure to this mobile site and future web applications we may bring.
I have made a comparision table where I have managed to bring the selection down to 2 - backbone and knockout.
I have been looking around the web and it seems that there is more support for backbone in general and maybe even more support for backbone with JQM.
http://jquerymobile.com/test/docs/pages/backbone-require.html
One thing I have noticed however is that backbone doesnt support view bindings (declarative approach) whereas knockout does - is this a massive bonus?
one of the main reasons for using a mv* for us is to get more structure - so I would like to use the library that will intergrate best with jQuery and especially jQuery mobile. neither of them seem to have that similar syntax...
Thanks