add an option to not build the template

Change-Id: Ia85fc9dfbd191ac66cfff2d7b7c815620d800afe
Merge "add an option to not build the template" into release-4-6