The jQuery Mobile docs have a lot of hidden gems. They make a great starting point but there are actually several ways of doing your base template. There is single-page template, multipage template, templates with global configuration, and dynamically-generated pages.
So, let's start out with a new jQM single-page boilerplate based on the original single-page template ( http://view.jquerymobile.com/1.3.0/docs/widgets/pages/). We will evolve this as we move into other chapters so it becomes an all-encompassing template. Following is the basic directory structure we'll create for this chapter and the files we'll use:
For now, here is the base HTML. Let's store it in template.html
:
Tip
Downloading the example code
You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly...