Skip to content

Conversation

@coriocactus
Copy link
Contributor

Issue (#372)

Jinja2's operator precedence has pipe | with higher precedence than concatenation ~, meaning expressions need parentheses to filter concatenated values: 'db-' ~ branch | hash_port parses as 'db-' ~ (branch | hash_port) therefore should be written as ('db-' ~ branch) | hash_port. Similarly repo ~ '-' ~ branch | hash_port should be written as (repo ~ '-' ~ branch) | hash_port.

(FYI I'm a rust n00b. In addition to documentation changes, I've made code changes in src/config/expansion.rs.)

coriocactus and others added 2 commits January 2, 2026 17:22
@max-sixty max-sixty merged commit ab4b7e6 into max-sixty:main Jan 2, 2026
19 checks passed
@max-sixty
Copy link
Owner

thanks a lot @coriocactus !

max-sixty added a commit that referenced this pull request Jan 2, 2026
Ensures template examples in docs work as described. Tests cover basic
variables, filters (sanitize, hash_port), operator precedence with
concatenation, and full command examples from docs.

Catches issues like PR #373 where operator precedence was documented
incorrectly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
max-sixty added a commit that referenced this pull request Jan 2, 2026
Ensures template examples in docs work as described. Tests cover basic
variables, filters (sanitize, hash_port), operator precedence with
concatenation, and full command examples from docs.

Catches issues like PR #373 where operator precedence was documented
incorrectly.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude <noreply@anthropic.com>
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