Play! Gravatar Module

Integrate Gravatar into Play application

Лицензия

Лицензия

unknown
Категории

Категории

Maven Компиляция и сборка
Группа

Группа

com.google.code.maven-play-plugin.org.playframework.modules.gravatar
Идентификатор

Идентификатор

play-gravatar
Последняя версия

Последняя версия

1.0.2
Дата

Дата

Тип

Тип

zip
Описание

Описание

Play! Gravatar Module
Integrate Gravatar into Play application
Система контроля версий

Система контроля версий

https://github.com/mbarbieri/play-gravatar

Скачать play-gravatar

Зависимости

provided (1)

Идентификатор библиотеки Тип Версия
com.google.code.maven-play-plugin.org.playframework : play jar 1.2.3

Модули Проекта

Данный проект не имеет модулей.

play-gravatar

Integrate Gravatar into your Play application.

Installation

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:

module.gravatar=${play.path}/modules/gravatar

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 'john@example.org'/}

renders to:

<img src="http://www.gravatar.com/avatar/08aff750c4586c34375a0ebd987c1a7e"></img>

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

#{gravatar.url 'john@example.org'/}

renders to:

http://www.gravatar.com/avatar/08aff750c4586c34375a0ebd987c1a7e

Parameters

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

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

Версии библиотеки

Версия
1.0.2