Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Support disabling tag helper processing at the element level #187

@NTaylorMullen

Description

@NTaylorMullen

There should be the ability to disable a specific element instance (in a CSHTML file) from being processed as a Tag Helper. e.g. consider that the input tag is mapped to the InputTagHelper class but I want a specific input element instance to be client-side only:

@addtaghelper "InputTagHelper"
@addtaghelper "DivTagHelper"

<input />  @* This will be processed as a tag helper *@

<!input /> @* This will *not* be processed as a tag helper and the '!' will be removed from the output HTML *@

<!div>     @* This will *not* be processed as a tag helper and the '!' will be removed from the output HTML *@
    Hello there
</!div>

If a prefix is also declared for the page with the same value, an exception should be thrown at parse time to indicate that the combination is invalid, e.g.:

@addtaghelper "InputTagHelper", prefix: "!"

@* Explodes at parse time *@

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions