Mojolicious::Plugin::TweetButton
version 0.0005
# Mojolicious $self->plugin('tweet_button'); # Mojolicious::Lite plugin 'tweet_button'; plugin 'tweet_button' => {via => 'vtivti'};
Mojolicous::Plugin::TweetButton adds a tweet_button helper to Mojolicious. It is compatible with the button described on twitter page http://twitter.com/goodies/tweetbutton.
tweet_button
<%= tweet_button %>
Generate tweet button.
All the arguments can be set globally (when loading a plugin) or locally (in the template).
<%= tweet_button count => 'horizontal' %>
Location of the tweet count box (can be "vertical", "horizontal" or "none"; "vertical" by default).
<%= tweet_button url => 'http://example.com' %>
The URL you are sharing (HTTP Referrer by default).
<%= tweet_button url => 'Wow!' %>
The text that will appear in the tweet (Content of the <title> tag by default).
<%= tweet_button via => 'vtivti' %>
The author of the tweet (no default).
<%= tweet_button related => 'kraih:A robot' %>
Related twitter accounts (no default).
<%= tweet_button lang => 'fr' %>
The language of the tweet (no default).
Mojolicious::Plugin::TweetButton - TweetButton Helper Plugin
Mojolicious::Plugin::TweetButton inherits all methods from Mojolicious::Plugin and implements the following new ones.
register
$plugin->register;
Register helper in Mojolicious application.
http://github.com/vti/mojolicious-plugin-tweet_button
Viacheslav Tykhanovskyi, vti@cpan.org.
vti@cpan.org
In alphabetical order:
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.
Mojolicious, Mojolicious::Guides, http://mojolicious.org.
Viacheslav Tykhanovskyi <vti@cpan.org>
This software is Copyright (c) 2010 by Viacheslav Tykhanovskyi <vti@cpan.org>.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Mojolicious::Plugin::TweetButton, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojolicious::Plugin::TweetButton
CPAN shell
perl -MCPAN -e shell install Mojolicious::Plugin::TweetButton
For more information on module installation, please visit the detailed CPAN module installation guide.