public final File getTemplateDir() {
        if ((templateDir == null) && (templatePath != null)) {
            try {
                templateDir = new File(templatePath).getCanonicalFile();
            } catch (final IOException ex) {
                throw new RuntimeException("Couldn't determine canonical template file: " + templatePath, ex);
            }
        }
        return templateDir;
    }
public final File getTemplateDir() {
        if ((templateDir == null) && (templatePath != null)) {
            try {
                templateDir = new File(templatePath).getCanonicalFile();
            } catch (final IOException ex) {
                throw new RuntimeException("Couldn't determine canonical template file: " + templatePath, ex);
            }
        }
        return templateDir;
    }
public final File getTemplateDir ( ) { if ( ( templateDir == null ) && ( templatePath != null ) ) { try { templateDir = new File ( templatePath ) . getCanonicalFile ( ) ; } catch ( final IOException ex ) { throw new RuntimeException ( "Couldn't determine canonical template file: " + templatePath , ex ) ; } } return templateDir ; }
Returns the template directory.

@return Template directory or NULL.
Returns the template directory .