Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (23 sloc) 1.12 KB


Integrate Gravatar into your Play application.


Module installation

Install the gravatar module from the modules repository:

play install gravatar

Enable the module

After installing the module, add the following to your application.conf to enable it:


Using gravatar tag

Gravatar module
After installation you can use gravatar.img tag in your templates to generate an html img tag with the correct url for the email provided:

#{gravatar.img ''/}

renders to:

<img src=""></img>

Or you can use gravatar.url to generate a String with the correct url:

#{gravatar.url ''/}

renders to:


Size_,default_,rating and secure parameters explained here
are available.

#{gravatar.url '', size:50, default:'mm', rating:'pg', secure:true /}