Skip to content
A set of sample tag helpers for ASP.NET Core MVC
JavaScript CSS C# HTML Makefile
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
TagHelperSamples temp bower fix Nov 13, 2019
.gitattributes init Aug 28, 2015
.gitignore Split into 2 assemblies Oct 17, 2015
LICENSE.txt Create LICENSE.txt Sep 21, 2015
README.md Added links to Authorization NuGet package Nov 7, 2017
appveyor-deploy.yml Appveyor updates Nov 13, 2019
appveyor.yml Appveyor updates Nov 13, 2019

README.md

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

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

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

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"

You can’t perform that action at this time.