NGravatar NuGet Package

NGravatar provides MVC HtmlHelper and UrlHelper extension methods for rendering Gravatar avatars from gravatar.com.

The project is licensed under the MIT open-source license and is hosted at Google Code. See http://code.google.com/p/ngravatar/ for more information.

Gravatar avatars are retrieved based on an email address and optional parameters. A rendered Gravatar avatar on an MVC view page might look something like:

@Html.Gravatar("[email protected]", 80, htmlAttributes: new { style = "border:10px solid blue;" })

The above line would render an <img> tag with the source of the Gravatar for "[email protected]".

The size, default image, rating, and any additional HTML attributes can also be specified.

Using NGravatar requires that the "NGravatar.Html" namespace be added to the Web.config (or the top of a view with a @using directive). See the source at Google Code for an example project.




Got any NGravatar Question?





Info

Version: 1.0.1
Author(s): Ken Yourek
Last Update: Monday, July 29, 2013
.NET Fiddle: Create the first Fiddle
Project Url: http://code.google.com/p/ngravatar/
NuGet Url: https://www.nuget.org/packages/NGravatar


Install
Install-Package NGravatar
dotnet add package NGravatar
paket add NGravatar
NGravatar Download (Unzip the "nupkg" after downloading)



Tags



STATS

must-have-score

.8

avg-downloads-per-day

3

days-since-last-release

4133