pyjade
pyjade copied to clipboard
Support multi-line code blocks
In Jinja2 one could write:
{% set li = [
'a',
'b',
'c',
] %}
The only way to do this with pyjade seems to be piping:
|{% set li = ['a',
| 'b',
| 'c',
| ]
|%}
Which is quite unwieldy. What if the code block is continued as long as there are extra indents? That would allow me to just write:
- set li = ['a',
'b',
'c',
]
+1 to this idea :smile: