NAME

ZConf::DevTemplate - Creates a the basic framework for a ZConf based module.

VERSION

Version 0.1.1

SYNOPSIS

use ZConf::DevTemplate;

my $zcdt = ZConf::DevTemplate->new();

METHODS

new

create

This creates a new module.

args hash

name

This is the name of the module.

email

This is the email address of the author.

author

This is author's name.

config

This is the ZConf config the module will use.

my $module=$zcdt->processGUI({
                   name=>'Some::Module',
                   email=>'foo@bar',
                   author=>'Foo Bar',
                   config=>'someModule',
                   });
if($zcdt->{error}){
    print "Error!\n";
}

processGUI

This processes 'ZConf::template::GUI' and returns a string containing the module.

It takes one arguement and that is a hash.

args hash

name

This is the name of the module.

email

This is the email address of the author.

author

This is author's name.

config

This is the ZConf config the module will use.

my $module=$zcdt->processGUI({
                   name=>'Some::Module',
                   email=>'foo@bar',
                   author=>'Foo Bar',
                   config=>'someModule',
                   });
if($zcdt->{error}){
    print "Error!\n";
}

processTemplate

This processes 'ZConf::template' and returns a string containing the new module.

It takes one arguement and that is a hash.

args hash

name

This is the name of the module.

email

This is the email address of the author.

author

This is author's name.

config

This is the ZConf config the module will use.

my $module=$zcdt->processTemplate({
                   name=>'Some::Module',
                   email=>'foo@bar',
                   author=>'Foo Bar',
                   config=>'someModule',
                   });
if($zcdt->{error}){
    print "Error!\n";
}

errorblank

This blanks the error storage and is only meant for internal usage.

It does the following.

$self->{error}=undef;
$self->{errorString}="";

ERROR CODES

1

Missing arguement.

2

Could not open 'ZConf::template';

AUTHOR

Zane C. Bowers, <vvelox at vvelox.net>

BUGS

Please report any bugs or feature requests to bug-zconf-devtemplate at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=ZConf-DevTemplate. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc ZConf::DevTemplate

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 Zane C. Bowers, all rights reserved.

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