Egg::Plugin::HTML::TagCloud - Plugin to use HTML::TagCloud.
package MyApp; use Egg qw/ HTML::TagCloud /; my $array= $e->get_tagging_data; my $cloud= $e->tagcloud(10); $cloud->add($_->{tag_name}, "/tags/$_->{tag_id}", $_->{count}) for @$array; $e->stash->{tagcloud_content}= $cloud->html_and_css;
It is a plugin to use HTML::TagCloud.
The object of HTML::TagCloud is returned.
Especially, the object is not maintained. However, it only returns it.
ARGS is an option to pass to HTML::TagCloud.
my $cloud= $e->tagcloud( levels => 20 );
It is acceptable only to pass the figure.
my $cloud= $e->tagcloud(20);
When ARGS is omitted ' levels => 10 ' becomes defaults.
Egg::Release, Egg::HTML::TagCloud,
Masatoshi Mizuno <lushe@cpan.org>
*COPYRIGHT AND LICENSE
Copyright (C) 2008 Bee Flag, Corp. <http://egg.bomcity.com/>.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.