Yo-An Lin (林佑安) > Jifty-Plugin-Gravatar-0.02 > Jifty::Plugin::Gravatar

Download:
Jifty-Plugin-Gravatar-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Jifty::Plugin::Gravatar - Jifty Plugin for Gravatar Icon Service

DESCRIPTION ^

SYNOPSIS ^

add options to config.yml

 framework:
   Plugins:
     - Gravatar:
        LocalCache: 1
        CacheExpire: 10
        CacheFileExpire: 10
        CacheRoot: /tmp/gravatar

to use gravatar icon in your template:

    package MyApp::View;
    use Jifty::View::Declare -base;

    template 'index.html' => page { } content {

        show '/gravatar' => 'email@host.com';

    };

USAGE ^

Add the following to your site_config.yml

 framework:
   Plugins:
     - Gravatar: {}

OPTIONS

LocalCache: bool

show gravatar icon path by /=/gravatar/[id] , to use cache.

CacheExpire: integer

cache expiration time of header. for browser

CacheFileExpire: integer

cache expiration time for Cache::File , save image cahce into CacheRoot.

CacheRoot: string

path for saving gravatar icon cache

AUTHOR ^

Cornelius <cornelius.howl [at] gmail.com>

SEE ALSO ^

Gravatar::URL

syntax highlighting: