Skip to content

Discuss how to handle tag wrap. #16

Description

@13leaf

Like this

{{foreach from=$list item='it' key='i'}}
{{$i}},{{$it}}
{{endforeach}}

After Lex,the tokens will like that:foreachTag,newLineText,print $i,print $it,newLineText,endforeachTag.
So the output(with list=[1,3]) should be:
newLine
0,1
newLine
1,3
newLine

That may not be expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions