Over a million developers have joined DZone.

Modifying the PhoneGap Template in PhoneGap 3.0

· Mobile Zone

A 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.

Topics:

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

SEE AN EXAMPLE
Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.
Subscribe

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}