Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for auto-indent blocks #85

Open
flexferrum opened this issue Nov 1, 2018 · 0 comments
Open

Support for auto-indent blocks #85

flexferrum opened this issue Nov 1, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@flexferrum
Copy link
Collaborator

pallets/jinja#919

Support for blocks (either variable or statement) which preserve the indentation:

Blocks now support a new syntax '{%* ... %}' that aligns the indentation of
multiline string with the block statement itself. This is especially
useful when templating YAML or other languages where indentation matters. Example:

@flexferrum flexferrum added the enhancement New feature or request label Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Development

No branches or pull requests

1 participant