Skip to content

Support case statements in templates#30

Merged
sbsoftware merged 2 commits intoreleases/v1.7.0from
feature/HTML-50
Feb 11, 2026
Merged

Support case statements in templates#30
sbsoftware merged 2 commits intoreleases/v1.7.0from
feature/HTML-50

Conversation

@sbsoftware-agent
Copy link
Copy Markdown
Collaborator

Adds support for evaluating case statements inside templates so nested tags render correctly.

Includes specs covering when/else branches and expressionless case usage.

Add Case AST handling to the template evaluation macro so tag method calls inside case/when branches are evaluated correctly.

Includes support for expressionless case forms (case; when ...), plus a spec covering when/else branches and nested case inside a tag block.
Comment thread src/instance_template.cr Outdated
Simplifying macro logic
@sbsoftware sbsoftware merged commit 8689d37 into releases/v1.7.0 Feb 11, 2026
@sbsoftware sbsoftware deleted the feature/HTML-50 branch February 11, 2026 21:27
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