Plugin Format Proposal

Here are my thoughts on a possible format so far:

  • Archive file (.tar.gz, .zip, .other_archiver) containing
    • Plugin file (plugin.pl)
    • Plugin Info/Doc file (plugin.xml)
    • (Optional) Pre-Install script (pre-install.pl)
    • (Optional) Post-Install script (post-install.pl)
    • Any extra files (plugin.pm, etc.)
  • Single Perl Plugin file (plugin.pl) containing:
    • Plugin Code
    • Plugin Info/Docs (in POD format)

We can support one, the other, or even both. At the moment, I don't know how easy or hard it is to pull out the POD docs from a Perl script, but I don't imagine it could be too difficult.

Any thoughts, questions, concerns?

1 TrackBack

Over at ScriptyGoddess, Kristine mentioned she has been participating in the discussion about the Plugin Manger under development over at rayners.org. This sounds like a very worthwhile project. As soon Read More

3 Comments

re munging POD - don't do it yourself :-)

Check the CPAN for Pod::Parser for all purpose POD munging and Pod::SAX for generating XML from POD, e.g.

# xml -> disk
my $w = XML::SAX::Writer->new(Output=>$fh);
# xml -> xml
my $f = XML::Filter::POD2MT->new(Handler=>$w);
# pod -> xml
my $p = Pod::SAX->new(Handler=>$f);

$p->parse_file("/path/to/pod");

Pod::Simple makes POD hacking, well simple! :)

http://search.cpan.org/author/SBURKE/Pod-Simple-0.96/

If you are looking at a format to use, PAR looks very tempting:

http://search.cpan.org/author/AUTRIJUS/PAR-0.66/

Gavin.

Help me please....
Can you give me, one's example proposal project. "Proposal project matematika research.

Leave a comment

About Me

I am a software developer for Six Apart living outside of Baltimore, MD. I have written a number of plugins for Movable Type, including the award winning MultiBlog, which has (as of MT 4) been integrated into the base application....
More...

Recent Entries

  • Minimalist plugins are fun!

    Last night I whipped up one of the smallest plugins I’ve ever written. It is so small in fact that I was able to stuff...

  • Feedburner Widget on MT News

    Movable Type News A WordPress 2.5 Upgrade Guide: And of course there are lots of third-party plugins for the MT dashboard, to integrate statistics and...

  • AD&D Monster Stats for the Presidential Canditates

    Charles Stross (scifi author, D&D nerd, and former perl columnist) posted Politics as she is Played with 3d6: The recent death of Gary Gygax, who...

  • Feedburner Widget 0.3

    At this point, I am really tempted to drop the ‘Widget’ from the name of the plugin, since it is doing so much more...

  • Feedburner Widget 0.2

    So I finally got around to updating the FeedburnerWidget plugin for MT 4.1 (since I finally got around to upgrading my install to MT 4.1)....

Close