Skip to content

Commit

Permalink
Update FiltersTemplates.php
Browse files Browse the repository at this point in the history
Allow existing files to be used instead of Blade-PHP template (notably `template-canvas.php`).
  • Loading branch information
strarsis authored and retlehs committed Feb 3, 2023
1 parent 74b8c3d commit 01279f4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Roots/Acorn/Sage/Concerns/FiltersTemplates.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ public function filterTemplateHierarchy($files)
*/
public function filterTemplateInclude($file)
{

if(@file_exists($file)) {
return $file;
}

$view = $this->fileFinder
->getPossibleViewNameFromPath($file = realpath($file));

Expand Down

0 comments on commit 01279f4

Please sign in to comment.