Skip to content

Commit

Permalink
feat: add setViewFolders to support RockCommerce HTMX
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardBaumrock committed Dec 22, 2023
1 parent 4991da5 commit dc33123
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions RockFrontend.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ function rockfrontend(): RockFrontend
* @link https://www.baumrock.com
*
* @method string render($filename, array $vars = array(), array $options = array())
* @method string view($filename, array $vars = array())
*/
class RockFrontend extends WireData implements Module, ConfigurableModule
{
Expand Down Expand Up @@ -2170,6 +2171,15 @@ public function scripts($name = 'main')
return $script;
}

/**
* Set viewFolders for folder rendering feature
* This is required for RockCommerce htmx endpoint rendering.
*/
public function setViewFolders(array $folders): void
{
$this->viewfolders = $folders;
}

/**
* Get given StylesArray instance or a new one if no name is provided
*
Expand Down

0 comments on commit dc33123

Please sign in to comment.