-
Notifications
You must be signed in to change notification settings - Fork 2
Render an image
Paul Hunt edited this page Feb 22, 2017
·
3 revisions
In the view, register the tag helper.
@addTagHelper *, DoTheSpriteThing
In the HTML header, reference the generated CSS file.
<link href="~/css/sprite.css" rel="stylesheet" />
In the HTML body, add spriteimg elements
<spriteimg sprite-image-id="image1-png" />
<spriteimg sprite-image-id="image2-png" />