Migrate jqhtml slot syntax from <#name> to <Slot:name>
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -53,9 +53,9 @@ class JqhtmlBladeCompiler
|
||||
// If there's slot content, we need to output the div directly to allow blade processing of the content
|
||||
if ($slot_content !== null && trim($slot_content) !== '') {
|
||||
// Check for slot syntax - not allowed in Blade
|
||||
if (preg_match('/<#[a-zA-Z0-9_]+/', $slot_content)) {
|
||||
if (preg_match('/<Slot:[a-zA-Z0-9_]+/', $slot_content)) {
|
||||
throw new \RuntimeException(
|
||||
"JQHTML slot syntax (<#slotname>) is not allowed in Blade files.\n" .
|
||||
"JQHTML slot syntax (<Slot:slotname>) is not allowed in Blade files.\n" .
|
||||
"Component '{$component_name}' contains slot tags in its innerHTML.\n" .
|
||||
"Use standard innerHTML with content() function instead.\n\n" .
|
||||
"Blade usage:\n" .
|
||||
|
||||
Reference in New Issue
Block a user