Ignore:
Timestamp:
2003-06-20T14:22:34+12:00 (21 years ago)
Author:
mdewsnip
Message:

Tidied up and structures (representing the options of the plugin) in preparation for removing the print_usage() routines.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/XMLPlug.pm

    r3540 r4744  
    3535
    3636use XML::Parser;
    37 my $arguments = [ { 'name' => "process_exp",
    38                           'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. Each plugin has its own default process_exp. e.g HTMLPlug defaults to '(?i)\.html?\$' i.e. all documents ending in .htm or .html (case-insensitive).",
    39                           'type' => "string",
    40                           'deft' => q^(?i)\.xml$^,
    41                           'reqd' => "no" } ];
     37
     38my $arguments =
     39    [ { 'name' => "process_exp",
     40    'desc' => "A perl regular expression to match against filenames. Matching filenames will be processed by this plugin. For example, using '(?i).html?\$' matches all documents ending in .htm or .html (case-insensitive).",
     41    'type' => "string",
     42    'deft' => &get_default_process_exp(),
     43    'reqd' => "no" } ];
    4244
    4345my $options = { 'name'     => "XMLPlug",
    44                  'desc'     => "",
    45                      'inherits' => "yes",
    46                      'args'     => $arguments };
     46        'desc'     => "Base class for XML plugins.",
     47        'inherits' => "yes",
     48        'args'     => $arguments };
    4749
    4850
Note: See TracChangeset for help on using the changeset viewer.