Jesse Vincent > Template-Declare > Template::Declare::TagSet::RDF

Download:
Template-Declare-0.37.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  3
View/Report Bugs
Source   Latest Release: Template-Declare-0.46

NAME ^

Template::Declare::TagSet::RDF - Tag set for RDF

SYNOPSIS ^

    # normal use on the user side:
    use base 'Template::Declare';
    use Template::Declare::Tags
         RDF => { namespace => 'rdf' };

    template foo => sub {
        rdf::RDF {
            attr { 'xmlns:rdf' => "http://www.w3.org/1999/02/22-rdf-syntax-ns#" }
            rdf::Description {
                attr { about => "Matilda" }
                #...
            }
        }
    };

INHERITANCE ^

    Template::Declare::TagSet::RDF
        isa Template::Declare::TagSet

METHODS ^

$obj = Template::Declare::TagSet::RDF->new({ namespace => $XML_namespace, package => $Perl_package })

Constructor inherited from Template::Declare::TagSet.

$list = $obj->get_tag_list()

Returns an array ref for the tag names.

Currently the following tags are supported:

        Alt    Bag    Description
        List    Property    RDF
        Seq    Statement    XMLLiteral
        about   li
        first    nil    object
        predicate    resource    rest
        subject    type    value
        _1 _2 _3 _4 _5 _6 _7 _8 _9 _10

This list may be not exhaustive; if you find some important missing ones, please let us know :)

AUTHOR ^

Agent Zhang <agentzh@yahoo.cn>

SEE ALSO ^

Template::Declare::TagSet, Template::Declare::TagSet::HTML, Template::Declare::TagSet::XUL, Template::Declare::Tags, Template::Declare.

syntax highlighting: