Echo the slot as a comment so that it can be used by HTML replacement mechanisms

This commit is contained in:
Alex Tselegidis 2024-05-11 17:27:28 +02:00
parent 0041e29ec7
commit b018542c77

View file

@ -167,6 +167,8 @@ if (!function_exists('slot')) {
$section = $layout['sections'][$name] ?? null;
echo '<!-- <SLOT id="' . $layout['filename'] . '/' . $name . '" /> -->' . PHP_EOL;
if (!$section) {
return;
}