Skip to content

Instantly share code, notes, and snippets.

@scottaddie
Created January 30, 2017 13:50
Show Gist options
  • Save scottaddie/6e903d491f390a59c7f817179041f0a2 to your computer and use it in GitHub Desktop.
Save scottaddie/6e903d491f390a59c7f817179041f0a2 to your computer and use it in GitHub Desktop.
Partial view containing card tag helper HTML
@model TagHelpersDemo.Views.Shared.Partials.CardViewModel
<img src="images/@(Model.PlayerName).png" alt="avatar" class="center-block" />
<div class="text-center">
<h2 class="@Model.SuitColorClass">
<strong>@Html.Raw(Model.SuitCharacterCode)</strong>
</h2>
<p>@Model.Rank</p>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment