
For example consider the process of adding a bar chart to this WHIFF documentation.
barChart1 example application is taken from the
Open Flash Charts tutorial.
Please see the tutorial to view the source code for the application
and read about how to format this and other Flash charts.
/Users/Aaron/whiff/doc/docroot
http://aaron.oirt.rutgers.edu/myapp/docs/.
/Users/Aaron/whiff/doc/docroot/barChart1.py
to the directory the server automatically uses the application
to respond to the corresponding URL
http://aaron.oirt.rutgers.edu/myapp/docs/barChart1.
barChart1 application may be used to format a web
page on its own or it may be included in a larger page like this
{{include "barChart1"/}}
WHIFF generalizes the "drop files in a directory" manner of organization by allowing component URLs to refer to application fragments and middlewares as well as applications.
resume.whiff middleware
(corresponding to the URL http://aaron.oirt.rutgers.edu/cgi-bin/resumes.cgi/resume)
and the
experience.whiff fragment
(corresponding to the URL http://aaron.oirt.rutgers.edu/cgi-bin/resumes.cgi/experience)
are designed for
use in larger applications and do not work as stand alone applications.
By mapping applications, middlewares, and fragments in a natural manner from directory locations to URL locations both for external and internal use the WHIFF infrastructure makes it easier to develop, compose and administer web applications.
The WHIFF infrastructure also seeks to reduce the complexity of developing web applications by supporting conventions and tools to unify web development namespaces into three categories:
By coordinating each namespace category WHIFF makes it easier to understand, create, and modify Web applications without sacrificing flexibility.
In order to allow applications to use these unified namespaces effectively WHIFF also provides
|
Subsections: ++ Resource Management
× A resource is an object which a web application can use to get information from the server environment or store information to the server environment. WSGI applications can use WHIFF API's to find and manipulate resources. ++ Application Configuration
× A whiff application, middleware or application fragment is identified by a Uniform Resource Locator (URL) which generally also trivially identifies the Python code or the configuration template which describes the application component. ++ Execution Parameters
× Most things which vary between different accesses to the same application are execution parameters. WHIFF Execution parameters are embedded in the WSGI environment dictionary. WHIFF supports primatives and naming conventions for accessing the WSGI environment. ++ Glossary of terms
× WHIFF is related to a wide variety of concepts. The glossary includes discussions and links to discussions about some of those concepts. |
||