-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from wanze/dev
Dev
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
* | ||
* @author Stefan Wanzenried <[email protected]> | ||
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License, version 2 | ||
* @version 1.1.0 | ||
* @version 1.1.1 | ||
*/ | ||
class TemplateEngineFactory extends WireData implements Module, ConfigurableModule | ||
{ | ||
|
@@ -78,7 +78,7 @@ public function ready() | |
return; | ||
} | ||
$this->wire($this->get('api_var'), $engine); | ||
$this->addHookAfter('Page::render', $this, 'hookRender'); | ||
$this->addHookAfter('Page::render', $this, 'hookRender', array('priority' => '100.01')); | ||
// If the engine supports caching, attach hooks to clear the cache when saving/deleting pages | ||
if (in_array('TemplateEngineCache', class_implements($engine))) { | ||
$this->wire('pages')->addHookAfter('save', $this, 'hookClearCache'); | ||
|
@@ -282,7 +282,7 @@ public static function getModuleInfo() | |
{ | ||
return array( | ||
'title' => 'Template Engine Factory', | ||
'version' => 110, | ||
'version' => 111, | ||
'author' => 'Stefan Wanzenried', | ||
'summary' => 'This module aims to separate logic from markup.' . | ||
'Turns ProcessWire templates into controllers which can interact over a new API ' . | ||
|