Nuno Carvalho > App-Navegante > App::Navegante::CGI

Download:
App-Navegante-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

App::Navegante::CGI - module to implement CGI applicantions in Navegante

VERSION ^

Version 0.02

SYNOPSIS ^

Build CGI applications in Navegante framework...

    use App::Navegante::CGI;

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

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

FUNCTIONS ^

skeleton

TODO

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 ^

J.Joao Almeira, <jj@di.uminho.pt>

Alberto Simões, <albie@alfarrabio.di.uminho.pt>

Nuno Carvalho, <smash@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?Queue=Navegante-AppCGI. 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 App::Navegante::CGI

You can also look for information at:

ACKNOWLEDGEMENTS ^

COPYRIGHT & LICENSE ^

Copyright 2007-2012 Project Natura.

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

syntax highlighting: