diff --git a/composer.json b/composer.json index ccec6cd..76594e4 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "newtron/core", - "version": "0.1.1", + "version": "0.1.2", "type": "library", "description": "Core framework package for Newtron", "homepage": "https://github.com/newtron-framework/core", diff --git a/src/Quark/QuarkCompiler.php b/src/Quark/QuarkCompiler.php index 2db9520..2158538 100644 --- a/src/Quark/QuarkCompiler.php +++ b/src/Quark/QuarkCompiler.php @@ -78,7 +78,7 @@ private function registerBuiltinDirectives(): void { $this->directives['include'] = function ($args) { $template = trim($args, '"\''); - return "echo \$__quark->render('{$template}');\n"; + return "\$__quark->skipRootLayout();\necho \$__quark->render('{$template}');\n"; }; $this->directives['if'] = fn($args) => "if ({$args}) {\n";