Support match case syntax
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 459
- Forks
- 90
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I'm missing the handling of match / case control flow.
With mako 1.3.10 I get the following error when I try to use %match expr : somewhere in my template
mako.exceptions.CompileException: Unsupported control keyword: 'match'
I looked up the current open issues and couldn't find something close, so I made a new one
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the CompileException from Mako 1.3.10 with %match expr : in a template, then trace the handling of unsupported control keywords. Determine the expected match/case syntax and verify that templates using it compile and render successfully without the reported error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100