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 · 1 comment
Open

Support for auto-indent blocks #85

flexferrum opened this issue Nov 1, 2018 · 1 comment
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
@tovrstra
Copy link

For those in need of a workaround until this issue is fixed: https://stackoverflow.com/a/10997352/494584

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
None yet
Development

No branches or pull requests

2 participants