Permalink
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (7 sloc) 321 Bytes
.. highlight:: django

Calculate the gravatar code for an e-mail address:

{{ "arjan@scherpenisse.net"|gravatar_code }}

Will output:

3046ecab06c4f9cdb49963a96636e5ef

This hash can then be used for displaying Gravatar images.