This blog post is a contribution from Mustaq Patel, an engineer with the SharePoint Developer support team.
SharePoint Apps provides a great deal of flexibility and how much we can do with it. Using WebTemplate we can direct AppWeb (the SPWeb under which the App is hosted) to use any other Site Template instead of out of box “App” SiteTemplate.
All restrictions and other attributes that applies to WebTemplate in SharePoint 2010 or SharePoint 2013 sites, applies to WebTemplate in SharePoint Apps.
For information on WebTemplate in SharePoint apps see below article
http://msdn.microsoft.com/en-us/library/fp179925(v=office.15).aspx
For WebTemplates in SharePoint 2010 see below article
http://blogs.msdn.com/b/vesku/archive/2010/10/14/sharepoint-2010-and-web-templates.aspx#webtemplate
For this walkthrough we will apply Team Site (STS#1) template to Appweb that gets provisioned when SharePoint hosted app is deployed in onprem. Below are the steps
Hope this helps!