Skip to content

Fix Jinja2 uuid() function call syntax for Tera compatibility#7

Merged
jeffreyaven merged 1 commit intomainfrom
claude/rust-stackql-deploy-port-xyr7K
Feb 12, 2026
Merged

Fix Jinja2 uuid() function call syntax for Tera compatibility#7
jeffreyaven merged 1 commit intomainfrom
claude/rust-stackql-deploy-port-xyr7K

Conversation

@jeffreyaven
Copy link
Contributor

Tera doesn't support Jinja2 function call syntax like {{ uuid() }}. The uuid value is already injected as a context variable, so we just need to convert {{ uuid() }} to {{ uuid }} before rendering.

Added preprocess_jinja2_compat() that handles Jinja2->Tera syntax transformations, applied in both render_query and render_inline_template.

https://claude.ai/code/session_01ShAyjRLWBYC3tPsusCxggv

Tera doesn't support Jinja2 function call syntax like {{ uuid() }}.
The uuid value is already injected as a context variable, so we just
need to convert {{ uuid() }} to {{ uuid }} before rendering.

Added preprocess_jinja2_compat() that handles Jinja2->Tera syntax
transformations, applied in both render_query and render_inline_template.

https://claude.ai/code/session_01ShAyjRLWBYC3tPsusCxggv
@jeffreyaven jeffreyaven merged commit 4cd3d5b into main Feb 12, 2026
3 of 4 checks passed
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

Comments