diff --git a/index.php b/index.php index 93046d1..1b53242 100644 --- a/index.php +++ b/index.php @@ -38,6 +38,11 @@ }); return count($modules) > 0; }, + 'modules' => function () { + if ($modules = $this->find('modules')) { + return $modules->children(); + } + }, 'isModule' => function () { return Str::startsWith($this->intendedTemplate(), 'module.'); }