TweetButton which is described on twitter page http://twitter.com/goodies/tweetbutton is now available for Mojolicious. After simply loading a plugin you get an html helper that inserts TweetButton using various setup arguments.

$self->plugin('tweet_button');
$self->plugin('tweet_button' => {via => 'vtivti'});

plugin 'tweet_button';
plugin 'tweet_button' => {via => 'vtivti'};

Arguments

All the arguments can be set globally (when loading a plugin) or locally (in the template).

Location of the tweet count box (can be "vertical", "horizontal" or "none"; "vertical" by default).

The URL you are sharing (the current URL by default).

The text that will appear in the tweet ("Check this out!" by default).

The author of the tweet ("tweetbutton" by default).

Related twitter accounts (no default).

The language of the tweet (no default).

Installation

perl Makefile.PL
make
make test
make install

Copyright (C) 2010, Viacheslav Tykhanovskyi

This program is free software, you can redistribute it and/or modify it under the terms of the Artistic License version 2.0.