Classes/Helper/AutoloadHelper.php
public static function loadTemplates($strPath, $strRgex = '/^.+\.[x]*html[5]*$/i')
    {
        $folder     = (substr_count($strPath, 'system/modules')) ? '/templates' : '/Resources/contao/templates';
        $strPath    = self::makePath($strPath, $folder);
        $objFiles   = self::getFiles($strPath, $strRgex);

        if ($objFiles) {
            self::registerTemplates($objFiles);
        }
    }
public static function loadTemplates($strPath, $strRgex = '/^.+\.[x]*html[5]*$/i')
    {
        $folder     = (substr_count($strPath, 'system/modules')) ? '/templates' : '/Resources/contao/templates';
        $strPath    = self::makePath($strPath, $folder);
        $objFiles   = self::getFiles($strPath, $strRgex);

        if ($objFiles) {
            self::registerTemplates($objFiles);
        }
    }
Ruft das Laden der Templates (*.html5, *.xhtml und *.html) für den
übergebenen Pfad (inkl. Unterordnern) auf.
@param        $strPath
@param string $strRgex