contao/development — Issue #9: Module should create .xhtml and .html5 templates
Author: importer
Created: 2011-11-30 12:12:43+00:00
State: open
Labels: Defect

Extension creator should be updated to Contao 2.10 standards when it comes to templates. To create .xhtml and .html5 instead of .tpl a little two changes have to be done.

ModuleExtension.php:155

```
new File('system/modules/' . $objModule->folder . '/templates/' . $strTemplate . '.tpl');

### into

new File('system/modules/' . $objModule->folder . '/templates/' . $strTemplate . '.html5');
```

ModuleExtension.php:180

```
new File('system/modules/' . $objModule->folder . '/templates/' . $strTemplate . '.tpl');

### into

new File('system/modules/' . $objModule->folder . '/templates/' . $strTemplate . '.html5');
new File('system/modules/' . $objModule->folder . '/templates/' . $strTemplate . '.xhtml');
```

--- _Originally created by qzminski on October 9th, 2011, at 07:36pm (ID 3532)_