Magento Themes and Magento Extensions

Phonegap HTML5 Project Structure

Posted on June 18th, 2014 | Posted by admin

During my first phonegap project i was very confused with what project structure to follow. Since Phonegap is a HTML5 app, all files needs to be .html only, so i was confused a lot of weather to use a single HTML file structure or multiple HTML files. Below in the blog post i will share my experience

Single HTML File

This make a lot of sense to use, because in multiple html files, will have lot of issues like passing variables, copy pasting header/footer multiple times in different files. But the problem with single html file is if we start to code our app in a single html file, the code will become very long and un manageable very soon.