Skip to content

dpaquette/TagHelperSamples

Repository files navigation

AppVeyor: Build status

Tag-helper-samples

TagHelper Samples running on Azure. Sample tag helpers that do useful work.

To use the Bootstrap AlertTagHelper (authored by Rick Strahl) add Font Awesome. The sample project adds FA to the Views\Shared_Layout.cshtml file.

Click the Summary menu item to see the tag helpers in action. From the home link, select a tag helper to see a code snipet and the resulting UI.

Try it in your project

Bootstrap Tag Helpers

Bootstrap Tag Helpers NuGet Badge

The Bootstrap Tag Helper samples are available on Nuget.

dotnet add package TagHelperSamples.Bootstrap

Then add the tag helpers to your _ViewImports.cshtml file:

@addTagHelper "*, TagHelperSamples.Bootstrap"

Markdown Tag Helpers

Markdown Tag Helpers NuGet Badge

The Markdown Tag Helper samples are available on Nuget.

dotnet add package TagHelperSamples.Markdown

Then add the tag helpers to your _ViewImports.cshtml file:

@addTagHelper "*, TagHelperSamples.Markdown"

Authorize Tag Helper

Authorization Tag Helpers NuGet Badge

The Authorize Tag Helper is available on Nuget.

dotnet add package TagHelperSamples.Authorization

Then add the tag helpers to your _ViewImports.cshtml file:

@addTagHelper "*, TagHelperSamples.Authorization"