NAME

Navegante::AppCGI - module to implement CGI applicantiosn in Navegante


VERSION

Version 0.01


SYNOPSIS

Build CGI applications in Navegante framework...

    use Navegante::AppCGI;
    my $app = Navegante::AppCGI->new(%args);
    ...
    my $app = $foo->createCGI();

where %args is an hash containig the result of parsing the DSL section of the program.


FUNCTIONS

new

This is the constructor, we use this function to create new objects for deploying applications. This function receives an hash as an argument which holds the information gathered by the parser after parsing the program file. Internal state of the object is set according to this hash.

createCGI

This function creates a file that is basically a CGI. This function returns the complete file, so you can do simething like this:

  open(FH,">filename.cgi");
  print FH $t->createCGI();

In order to create the CGI file, this function starts with the skeleton definition (defined in this module) and substitutes the skeleton's keywords with the correspond keyword extracted from DSL's section of the program. Some sanity checks are made, and defaults set.

TODO:

* set defaults for everything

createToolbar

This function creates the code needed to render the application's banner based on some defined variables. This function is used in the constructor.

createIframe

This function creates the code needed to render the application's frame in the banner. This function is used in the constructor.

TODO

* use info defined in the DSL to render the form


AUTHOR

smash, <smash at cpan.org>


BUGS

Please report any bugs or feature requests to bug-navegante-appcgi at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html. 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 Navegante::AppCGI

You can also look for information at:


ACKNOWLEDGEMENTS


COPYRIGHT & LICENSE

Copyright 2007 smash, all rights reserved.

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