Keith Grennan > Text-Microformat-0.04 > Text::Microformat::Element::rel_tag

Download:
Text-Microformat-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source  

NAME ^

Text::Microformat::Element::rel_tag - a rel-tag element

SYNOPSIS ^

    To add rel-tag to a Text::Microformat schema:

    package Text::Microformat::Element::hMyFormat
    __PACKAGE__->init(
        'my-format',
        schema => {
            tags => 'rel-tag',
        }
    );
    
    To then retrieve tags from a Text::Microformat::Element::hMyFormat instance:
    
    foreach my $tag (@{$format->tags}) {
        print $tag->MachineValue, "\n"; # print the href
        print $tag->HumanValue, "\n"; # print the tag word
    }

SEE ALSO ^

Text::Microformat, http://microformats.org/wiki/rel-tag

AUTHOR ^

Keith Grennan, <kgrennan at cpan.org>

BUGS ^

Log bugs and feature requests here: http://code.google.com/p/ufperl/issues/list

SUPPORT ^

Project homepage: http://code.google.com/p/ufperl/

COPYRIGHT & LICENSE ^

Copyright 2007 Keith Grennan, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: