Modifying the PhoneGap Template in PhoneGap 3.0
Join the DZone community and get the full member experience.
Join For FreeA few months back I wrote a quick blog entry on how you can modify the default WWW template used when creating new PhoneGap projects. While not a problem for most people, I tend to create a crap-load of PhoneGap projects so I can test various mission-critical important features. So it bugs me when I have to go in and remove the pretty, but useless to me, boilerplate code. Currently there is an open bug to allow for something along these lines at the command line, but in the meantime you may be wondering where the default template exists.
Previously the installation instructions for PhoneGap included downloading the ZIP. In that ZIP you could find the template directory used by the news app.
In the post-3.0 world this is a bit different. After you've done your installation via NPM, you can find the bits at:
/Users/ray/.cordova/lib/www/phonegap/3.0.0/www
Obviously this folder would be slightly different for Windows, and obviously the 3.0.0 will be different as time goes on.
Here is my much superior default template that I humbly offer to the PhoneGap team for their consideration.
Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments