NAME
App::Navegante - a framework to build intrusive high order proxies
VERSION
Version 0.02
SYNOPSIS
$ navegante examples/program
DESCRIPTION
This module is mostly a place holder for the documentation. All the magic is done whith the navegante
program.
To build an application using Navegante you need to have a program file. This program file is splitted in two major sections:
- DSL oefinitions
-
The first section is used to specify application parameters using a well defined DSL, detailed in the next section.
- Generic definitions
-
The second section is used to define any kind of functions needed by our application in Perl syntax.
Domain Specific Language
The statements that can currently be used are:
init(STRING)
-
The name of the function that is called in the beginning of every application call.
desc(STRING)
-
The function that prints the application's behavior.
formtitle(STRING)
-
Define the form's title of the application.
save
-
TODO
mail
-
TODO
filename(STRING)
-
The destination filename for the newly create application. If no
filename
is specified, prints to standard output. feedback(STRING)
-
The function that is called when the application's feedback link is followed.
proc(STRING)
-
The function that is used to actually process the page content.
-
The functions that should be called to process specific HTML tags content. For example:
proctags(h1=
toitalic,h2=>underline)>would call the function
toitalic
when processingH1
tag's content, andunderline
when processingH2
tag's content. protect(LIST)
-
Comma separated list of HTML tags that will not be processed by the
proc
function. By default this list is: 'html','head','script' and 'title'. livefeedback(STRING)
-
The function that is used to render the feedback section in the application's banner.
annotate(STRING)
-
The fucntion that is called when the form user data, in the application's banner is submitted.
iform(STRING)
-
Used to used the form that is going to be rendered in the application's banner. For example:
iform(name=
text,"Set name!"=>submit)>Would render a iframe with a two elements form: a text box named
name
and a submit button. See alsoiframe
for a more elaborate method to define this form. iframe(STRING)
-
If defining the form that is used in the banner is not enough, you can use
iframe
to define the name of a function that returns the entire iframe content. Note thatiframe
always takes precedence overiform
in case you define both. quit(STRING)
-
The function that is called when the appliccation's banner quit button is followed.
Generic Definitions
The space between "##" and EOF is just copied do application. Tipycally, it should include the implementation of the function described as arguments.
EXAMPLES
An example program file should look something like:
filename(reverse)
formtitle(Reverse Browsed Content)
feedback(reverseFeedback)
proc(reverseFuncion)
desc(reverseDesc)
##
sub reverseFunction {
...
For more examples refer see TODO.
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-app-navegante at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=App-Navegante. 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
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
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.