adding option to include only code on template functions