feat: allow configuring inline slot name formation behaviour #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 messyTo make this more convenient, I've added an option to configure the behaviour via the config option
normalizeInlineSlotNames: true|falseand 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