Skip to content

Conversation

@munezaclovis
Copy link

Hey, Big fan of your package.

I am currently writing a custom blade precompiled that supports array slots (eg: <x-slot:[options] value="1">One<x-slot:[options]>)

the precompiled needs to know when the array slot has closed and to do that I needed to close the slot with the inlineName included aswell.

when paired with this package, it became apparent that I need to wrap the slots inside the {{-- format-ignore-start --}} and {{-- format-ignore-end --}} anytime I want to close a slot tag with the inlineName included as well. I have many places I do this so it became very messy

Screenshot 2025-12-18 at 12 38 07 AM

To make this more convenient, I've added an option to configure the behaviour via the config option normalizeInlineSlotNames: true|false and this will dictate if the plugin should remove the :inlineName off of the closing slot tag or not. It should work for both normal inlineNames (x-slot:name) and my weird custom feature I'm working on (x-slot:[names])

again, Thanks for the amazing package. cant wait to see forte

@JohnathonKoster
Copy link
Contributor

Thanks for this! I will do a review over the next week or so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants