Skip to content

New Razor '@page' directive #272

Open
@Eilon

Description

@Eilon

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions