We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad1229 commit c23581eCopy full SHA for c23581e
system/plugins/Template.php
@@ -13,14 +13,18 @@ class Template
13
{
14
public function render($file, $vars, $cache = false)
15
16
- $paths = array(APP_DIR . '/views');
17
-
+ $paths = array(APP_DIR . '/views');
+
18
+ // .blade.php extension support
19
+ $loader = new EdgeFileLoader($paths);
20
+ $loader->addFileExtension('.blade.php');
21
22
if($cache === false)
- $this->edge = new Edge(new EdgeFileLoader($paths));
23
+ $this->edge = new Edge($loader);
24
else
- $this->edge = new Edge(new EdgeFileLoader($paths), null, new EdgeFileCache(APP_DIR . '/cache'));
25
+ $this->edge = new Edge($loader, null, new EdgeFileCache(APP_DIR . '/cache'));
26
27
return $this->edge->render($file, $vars);
28
}
29
-}
30
+}
0 commit comments