Skip to content

Support parsing of <!--esi ...--> comments - #57

Merged
vagetman merged 2 commits into
mainfrom
vadim/esi-comment-fix
Jul 28, 2026
Merged

Support parsing of <!--esi ...--> comments#57
vagetman merged 2 commits into
mainfrom
vadim/esi-comment-fix

Conversation

@vagetman

Copy link
Copy Markdown
Collaborator

Implement parsing for ESI comment blocks, allowing the library to process inner ESI content while stripping the comment delimiters. This enhancement includes comprehensive tests for various scenarios, ensuring correct handling of plain HTML, variables, choose statements, and mixed comments.

Fixes #48

vagetman added 2 commits July 15, 2026 09:54
- Implement parsing for <!--esi ...--> comments, stripping delimiters and processing inner ESI content.
- Add tests for various scenarios including plain HTML, variables, choose statements, and mixed comments.

Fixes #48
@vagetman
vagetman requested review from acme, kailan and tyler July 27, 2026 05:10

@acme acme left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Looks good.

Minor: strip_prefix(b"esi") has no boundary after esi, so <!--esitest--> gets treated as ESI and renders as test. Intentional or should we match tighter? Either way, worth a test.

@vagetman
vagetman merged commit d462f78 into main Jul 28, 2026
3 checks passed
@vagetman
vagetman deleted the vadim/esi-comment-fix branch July 28, 2026 05:17
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.

Support <!--esi ...--> ?

2 participants