Skip to content

expresion render in loop statement #575

Open

Description

@hiephm3a

We've been using Razor for rending XML document, but when use expression in end tag of xml I has problem. My example

@for(int j=0;j<10;j++) { <p@(j)></p@(j)> }
and rend parse template with RazorEngine version 3.10.0.0 I had result
<p0></p@(j)> <p1></p@(j)> <p2></p@(j)> <p3></p@(j)> <p4></p@(j)> <p5></p@(j)> <p6></p@(j)> <p7></p@(j)> <p8></p@(j)> <p9></p@(j)>

as result, begin element name render is correct but end tag is incorrect!
Can anyone provide any suggestions or tell what's wrong in my template !
Thanks so much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions