Skip to content

Conversation

@ojob
Copy link

@ojob ojob commented Oct 30, 2025

This applies to declared variables, including in for loops, and macros.

Closes: #913

This applies to declared variables, including in for loops, and macros.

Refs: Keats#913
@ojob ojob force-pushed the docs/describe-allowed-variable-names-characters branch from 80aee72 to a1a7f22 Compare October 30, 2025 09:59
{% set my_var = [1, true, some_var | round] %}
```

Note that variables names are limited to ASCII letters, figures, and underscore, i.e. `[a-zA-Z0-9_]`.
Copy link
Owner

Choose a reason for hiding this comment

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

do you mean numbers rather than figures? They also can't start with a number

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.

Macro names can have underscores but not hyphens

2 participants