Skip to content

Commit

Permalink
feat: add support for rendering html files
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Mar 18, 2023
1 parent e9bcb61 commit b4d3e6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -1468,7 +1468,7 @@ public function ___render($path, $vars = null, $options = [])
$html = '';

$ext = strtolower(pathinfo($file, PATHINFO_EXTENSION));
if ($ext == 'php') {
if ($ext == 'php' or $ext == 'html') {
$options = $opt->getArray();
$html = $this->wire->files->render($file, $vars, $options);
} elseif ($ext == 'svg') $html = $this->svg($file, $vars);
Expand Down

0 comments on commit b4d3e6b

Please sign in to comment.