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

RazorTemplate does not support writing attributes with Razor content #1

Closed
roblevine opened this issue Aug 24, 2016 · 2 comments
Closed
Labels

Comments

@roblevine
Copy link
Contributor

The following xml in a razor template

<root attribute="@Model.Value1" />

results in the error:

the name 'WriteAttribute' does not exist in the current context

@roblevine roblevine added the bug label Aug 24, 2016
@roblevine roblevine self-assigned this Aug 24, 2016
@roblevine
Copy link
Contributor Author

This is due to a naive implementation of Razor rendering. On investigation, it seems like the Antaris RazorEngine project does everything we need in a far more complete way than the current implementation; therefore I'll experiment with switching to that.

@roblevine roblevine removed their assignment Sep 8, 2016
@roblevine
Copy link
Contributor Author

Fixed in v2.0.13-beta

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

No branches or pull requests

1 participant