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

expresion render in loop statement #575

Open
hiephm3a opened this issue Dec 18, 2020 · 0 comments
Open

expresion render in loop statement #575

hiephm3a opened this issue Dec 18, 2020 · 0 comments

Comments

@hiephm3a
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant