new-from-template.cpp revision 2f9007bf3e857681ce5a001a37b621c4b105a4e8