I am currently building a game in phonegap using jQuery Mobile frame work. What i have ended up with is lots of spaghetti code with one html and several js classes.
I was interested to know if there are any good guides to create a structured jQuery Mobile Application that follows MVC pattern.
I found a good guide for creating a MVC App with Sencha Touch. I was looking for something similar with jQuery Mobile.
I have a rather large application and this is how I have it structured
aside for my index.html file, all other .html files are stubs. They only contain the
<div data-role='page'></div>and other needed html elements that define the page and its intended functionality.I develop the app on VS2010, using Chrome as my debugger. When I feel good with my progress, I copy everything over to my mac to a folder in an Eclipse project ( for Android devices ) which is also a linked reference in my xCode project ( for iOS devices ).
I have been working on this project for about 3-4 months now and once I got past the learning curve of jQM and PhoneGap, have been making very good progress with this structure.