MojoMojo::Formatter::Amazon(3pm)

MojoMojo::Formatter::Amazon3pm

Include amazon objects on your page.

module_loaded

Return true if the module is loaded.

Overview

This is an url formatter. it takes urls containing amazon and /-/ or /ASIN/ and make a pretty formatted link to that object in the amazon web store.

It automatically handles books/movies/dvds and formats them as appropriate. You can also pass 'small' as a parameter after the url, and it will make a thumb link instead of a blurb.

Methods

format_content_order

Format order can be 1-99. The Amazon formatter runs on 5.

format_content

calls the formatter. Takes a ref to the content as well as the context object.

get <asin>

Connects to amazon and retrieves a Net::Amazon object based on the supplied ASIN number.

small <property>

Renders a small version of the formatter.

blurb <property>

renders a full width blurb of the product, suitable for reviews and such.

DVD <property>

Product information suitable for DVD movies.

Book <property>

Product information suitable for books.

Music <property>

Product information suitable for music CDs.

Releases

5 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 7
  3. 8
  4. 9
  5. 10

Authors

Marcus Ramberg <[email protected]

License

This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.

From libmojomojo-perl 1.12+dfsg-1 in Debian 10 (Buster). Parsed by carta from the page's man source.