Skip to content

Need to handle C# code in html element tag #4972

@NTaylorMullen

Description

@NTaylorMullen

We need to provide a way to handle "code" inside of an html tag that happens to be a tag helper.

For instance:

@{ foo = "class=\"bar\""; }
<div @foo style="...">

This can be handled as an empty "Key" or "Value" entry into the attributes dictionary OR we could throw an error.

Metadata

Metadata

Assignees

Labels

Needs: DesignThis issue requires design work before implementating.area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing onefeature-razor-pages

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions