Skip to content

Comments

Prevent blade comments from being parsed#25

Merged
ganyicz merged 1 commit intomainfrom
filip/fix-comments
Jan 15, 2026
Merged

Prevent blade comments from being parsed#25
ganyicz merged 1 commit intomainfrom
filip/fix-comments

Conversation

@ganyicz
Copy link
Collaborator

@ganyicz ganyicz commented Jan 15, 2026

The problem

Currently Blaze parses Blade comments:

{{-- <x-card> --}}

Even though the comment will be later removed by Blade, Blaze still parsed and rendered the card component in the background.

The solution

The solution is to use Blade's compileComments method to remove all comments before they're parsed.

@ganyicz ganyicz merged commit 6c8c037 into main Jan 15, 2026
6 checks passed
@joshhanley joshhanley deleted the filip/fix-comments branch January 20, 2026 00:19
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.

1 participant