劉康民

NAME

Template::Plugin::CSV - Plugin for generating CSV

SYNOPSIS

    [% USE CSV %]

    [% CSV.dump(list_var) %]
    [% CSV.dump_values(hash_var) %]

DESCRIPTION

This is a very simple TT2 Plugin for generating CSV. A CSV object will be instantiated via the following directive:

    [% USE CSV %]

METHODS

There are two methods supported by the CSV object. Each will output a comma-sepeated line.

dump()

Given a list and dump a comma-sepearted line of its elements.

dump_values()

Given a hash and dump a comma-sepearte lines of its values.

new()

A Template::Plugin constructor.

AUTHOR

Kang-min Liu <gugod@gugod.org>

COPYRIGHT

Copyright (C) 2005 Kang-min Liu, All Rights Reserved.

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

SEE ALSO

Template::Plugin::Dumper, Text::CSV




Hosting generously
sponsored by Bytemark