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

New Razor '@page' directive #272

Open
Eilon opened this issue Oct 10, 2017 · 0 comments
Open

New Razor '@page' directive #272

Eilon opened this issue Oct 10, 2017 · 0 comments

Comments

@Eilon
Copy link
Member

Eilon commented Oct 10, 2017

The Razor parser has a new @page directive, which is used by Razor Pages.

This means that a Razor page (CSHTML file) with a variable page can no longer use @page to render that variable because it is now a reserved word.

To render the variable use @(page).

@Eilon Eilon added this to the 2.0.0 milestone Oct 10, 2017
@aspnet aspnet locked and limited conversation to collaborators Oct 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant