pyjade icon indicating copy to clipboard operation
pyjade copied to clipboard

Support multi-line code blocks

Open xiaq opened this issue 11 years ago • 1 comments

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',
           ]

xiaq avatar Apr 25 '13 12:04 xiaq

+1 to this idea :smile:

fgimian avatar Mar 01 '14 07:03 fgimian