This is small and simple integration gravatar into flask.
Install the extension with one of the following commands:
$ easy_install Flask-Gravatar
or alternatively if you have pip installed:
$ pip install Flask-Gravatar
Initialize with flask application and default parameters:
gravatar = Gravatar(app,
size=100,
rating='g',
default='retro',
force_default=False,
force_lower=False,
use_ssl=False,
base_url=None)
Then in your template:
{{ 'zzz.sochi@gmail.com' | gravatar }}
Bigger and adult:
{{ 'zzz.sochi@gmail.com' | gravatar(size=200, rating='x') }}
All parameters are described in gravatar documentation.
Simple object for create gravatar link.
Parameters: |
|
---|
Build gravatar link.
Parameters: |
|
---|
Default parameters. May change in runtime.