Community contributed extensions


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 '[email protected]'/}

renders to:

<img src=""></img>

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

#{gravatar.url '[email protected]'/}

renders to:


Size,default,rating and secure parameters explained here
are available.

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