genny/build/validate.go
func GoTemplateValidator(f genny.File) error {
	if !genny.HasExt(f, ".tmpl") {
		return nil
	}
	t := template.New(f.Name())
	_, err := t.Parse(f.String())
	return err
}
func GoTemplateValidator(f genny.File) error {
	if !genny.HasExt(f, ".tmpl") {
		return nil
	}
	t := template.New(f.Name())
	_, err := t.Parse(f.String())
	return err
}
func GoTemplateValidator ( f genny . File ) error { if ! genny . HasExt ( f , " " ) { return nil } t := template . New ( f . Name ( ) ) _ , err := t . Parse ( f . String ( ) ) return err }
// GoTemplateValidator validates the file is a
// valid Go text/template file if the extension
// is .tmpl
GoTemplateValidator validates the file is a valid Go text / template file if the extension is . tmpl