Skip to content

Commit

Permalink
Updates readme for <our-version>
Browse files Browse the repository at this point in the history
  • Loading branch information
Warren Buckley committed Oct 26, 2021
1 parent bc0192f commit 4f6c60c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,16 @@ This tag helper element `<our-fallback>` uses the same fallback mode logic that
<h3><our-fallback property="Header" mode="Fallback.ToAncestors">I do NOT have a Header property set on ANY parent and ancestors</our-fallback></h3>
```

## `<our-version>`
This tag helper element `<our-version>` prints out version number for a given Assembly name loaded into the current AppDomain or if none is given then the EntryAssembly version is displayed, which would be the Umbraco website project you are building.

```cshtml
<!-- Prints out the Website Project Assembly Version -->
<our-version />
<!-- Prints out the version number of a specific assembly loaded into Current AppDomain -->
<our-version="Our.Umbraco.TagHelpers" />
```

## Video 📺
[![How to create ASP.NET TagHelpers for Umbraco](https://user-images.githubusercontent.com/1389894/138666925-15475216-239f-439d-b989-c67995e5df71.png)](https://www.youtube.com/watch?v=3fkDs0NwIE8)
Expand Down

0 comments on commit 4f6c60c

Please sign in to comment.