*


News

[01/Jul/2009:10:50] Repoze.who authentication tutorial added

[22/Jun/2009:11:36] AJAX calculator tutorial added.

[10/Jun/2009:19:20] Release 0.3 includes Flash based chart support.

[01/May/2009:14:15] MVC/SQL based wiki tutorial added.



Contact Email:



view source
W1200_1400.
stdMiddleware.
whiff



Download instructions
at whiff.sourceforge.net
project page
.
WHIFF DOCUMENTION

Standard whiff_middleware

The WHIFF infrastructure provides a collection of standard middleware components useful for building applications and also for testing and debugging applications.

Contents:
whiff_middleware/absPath - find absolute path
whiff_middleware/addCommentsFromResource - add comments to a page from WHIFF resource
whiff_middleware/anchor - format an anchor
whiff_middleware/asJson - format page as Json string
whiff_middleware/CallPageFunction -- calls a page expanded at the server
whiff_middleware/CallPageWithStrings -- expand a page with string arguments
whiff_middleware/callTemplate -- expand a page
whiff_middleware/cgiValue - get a form value using a computed name
whiff_middleware/checkProfile - check user profile
whiff_middleware/completions.css - CSS stylesheet for drop down completions
whiff_middleware/debugDump - dump WSGI environment as HTML
whiff_middleware/dictsToSequences - linearize a mappings into a sequences
whiff_middleware/diff.css - CSS stylesheet for text diff
whiff_middleware/diff - format a difference display between two texts
whiff_middleware/displayTraceback - convert exception to HTML traceback
whiff_middleware/envValue - get environment value from computed name
whiff_middleware/evalPageFunction -- generate a server call back
whiff_middleware/expandPostedTemplate - process server callback
whiff_middleware/FCKInput -- embed an FCKEditor input element
whiff_middleware/format - format a string using a dictionary
whiff_middleware/getPage - expand CGI request as a template
whiff_middleware/getPageLink - generate a link which expands into a page template
whiff_middleware/getResource - get a resource value
whiff_middleware/heading - create a heading cross reference
whiff_middleware/headings - collect headings and format index
whiff_middleware/ifcgi - test presence of cgi variables
whiff_middleware/ifdef - test presence of environment variable
whiff_middleware/ifVisible - test presence of visible text
whiff_middleware/image - format an img reference
whiff_middleware/importResource - put resource value in environment
whiff_middleware/insecureAuthorize - simple minded authorization
whiff_middleware/insertIfNeeded - insert a text only once, if needed
whiff_middleware/intGetter - get int value
whiff_middleware/link - encode a URL link
whiff_middleware/listGetter - get values from a list for dropdown
whiff_middleware/loadList generate javascript to load a list
whiff_middleware/loadMonth - load month javascript
whiff_middleware/loadTemplateFunction
whiff_middleware/logoutProfile - forget profile connection
whiff_middleware/mCategory - define menu category
whiff_middleware/menuFromList - format menu from list.
whiff.middleware.misc - miscellaneous support module
whiff_middleware/mItem - define menu item
whiff_middleware/mMenu - define menu
whiff_middleware/monthHtml - generate a month popup
whiff_middleware/newProfile - create a profile object
whiff_middleware/Noop - no-operation middleware
whiff_middleware/oneLine - collapse white space
whiff_middleware/pageToUrl - encode a page as a URL
whiff_middleware/png/... - PNG image demo components subpackage
whiff_middleware/png/barChart - generate a PNG bar chart
whiff_middleware/png/barChartLink - link to bar chart
whiff_middleware/png/bnfImage - generate a PNG image of a BNF railroad diagram
whiff_middleware/png/ERdiagram - generate a PNG image of an Entity-Relationship diagram
whiff_middleware/png/pieChart - generate a PNG pie chart
whiff_middleware/png/pieChartLink - link to pie chart
whiff_middleware/png/schemaDiagram - generate a PNG image of relational database schema
whiff_middleware/PopUpJS - load content and pop-up HTML section
whiff_middleware/printMessage - print console message
whiff_middleware/putResource - install a resource value by path
whiff_middleware/pygmentsColorize - colorize programming language text
whiff_middleware/pygmentsCss - provide CSS class definitions
whiff_middleware/quoteHtml - quote HTML special characters
whiff_middleware/redirect - redirect the client to another URL
whiff_middleware/repeat - repeat page for each element of sequence
whiff_middleware/repoze/... - repoze package wrapper sub-package
whiff_middleware/repoze/allow -- allow listed authenticated users to view the page or application
whiff_middleware/repoze/onStatus - deliver different responses to logged in or logged out user
whiff_middleware/repoze/protect - protect page/application from unauthorized access
whiff_middleware/repoze/uid - get user name for authenticated user
whiff_middleware/repoze/who - attempt to authenticate user using repoze.who
whiff_middleware/session - get or assign server session for client
whiff_middleware/setInnerHTML - set inner html for element to page
whiff_middleware/setTarget - set javascript properties for HTML DOM element
whiff_middleware/skimpy - a CAPTCHA protocol middleware
whiff_middleware/sortTable - tool for building tables with sorted rows
whiff_middleware/switch - switch on string cases
whiff_middleware/TestSafeHtml - test/strip dangerous HTML tags from text
whiff_middleware/unauthorized - return "unauthorized" response
whiff_middleware/undef - undefine an environment entry for page
whiff_middleware/unquoteHtml - unquote HTML markup
whiff_middleware/urlToPage - convert URL to page
whiff_middleware/whiff.js - standard WHIFF javascript functionality
whiff_middleware/whiffColorize - colorize WHIFF source embedded in HTML (or other format)
whiff_middleware/wrapIfHtml - apply wrapper only to HTML content
The directory INSTALL/whiff/middleware contains a special collection of whiff components which are generally useful and automatically available to all WHIFF components using the special URL whiff_middleware/*. These applications are somewhat analogous to the Python built-in objects which are available in any Python module. This portion of the documentation provides a guide to the standard WHIFF middleware components.

whiff_middleware/absPath - find absolute path

The whiff_middleware/absPath middleware translates a server-relative URL path to a server-absolute URL path positioned relative to the current WHIFF component.
whiff source generated page formatted output
temp content

whiff_middleware/addCommentsFromResource - add comments to a page from WHIFF resource

The whiff_middleware/addCommentsFromResource is an example of how to extract form data from a page submission and put that data into a WHIFF resource. This example is used to implement the "feedback" forms for the WHIFF documentation.

whiff_middleware/anchor - format an anchor

The whiff_middleware/anchor is a tool which is sometimes useful for creating a large and complex <a href...> links.
whiff source generated page formatted output
temp content

whiff_middleware/asJson - format page as Json string

The whiff_middleware/asJson middleware translates a page value into a JSON formatted string suitable for inclusion in other JSON data structures.
whiff source generated page formatted output
temp content

whiff_middleware/CallPageFunction -- calls a page expanded at the server

The whiff_middleware/CallPageFunction middleware expands a page at the server and returns a generated javascript function to the browser, and evaluates the generated function. This middleware is sometimes useful for implementing AJAX functionality.

whiff_middleware/CallPageWithStrings -- expand a page with string arguments

The whiff_middleware/CallPageFunction middleware expands a page using string arguments. This middleware is sometimes useful for implementing AJAX functionality.

whiff_middleware/callTemplate -- expand a page

The whiff_middleware/CallTemplate middleware expands a page. This middleware is sometimes useful for implementing AJAX functionality.

whiff_middleware/cgiValue - get a form value using a computed name

The whiff_middleware/cgiValue middleware is a dynamic variant of the get-cgi directive. This middleware can be useful for manipulating forms which do not have a fixed number of input parameters.
whiff source generated page formatted output
temp content

whiff_middleware/checkProfile - check user profile

The whiff_middleware/checkProfile middleware determines whether the user has an assigned user profile resource and delivers a success page if so or if not delivers a failure page. If the invocation provides the user and password parameters, the whiff_middleware/checkProfile middleware uses those values to attempt to locate the profile and cache the profile in the session object.
whiff source generated page formatted output
temp content

whiff_middleware/completions.css - CSS stylesheet for drop down completions

The whiff_middleware/diff.css middleware generates a CSS default stylesheet for whiff_middleware drop down completions. This is a convenience only, you will probably want to develop your own stylesheets.

whiff_middleware/debugDump - dump WSGI environment as HTML

The whiff_middleware/debugDump middleware presents the WSGI environment in HTML quoted form.
whiff source generated page formatted output
temp content

whiff_middleware/dictsToSequences - linearize a mappings into a sequences

The whiff_middleware/dictsToSequences extracts values for a sequence of keys from a sequence of mappings and puts them as a sequence in the environment.
whiff source generated page formatted output
temp content

whiff_middleware/diff.css - CSS stylesheet for text diff

The whiff_middleware/diff.css middleware generates the CSS stylesheet required by whiff_middleware/diff.

whiff_middleware/diff - format a difference display between two texts

The whiff_middleware/diff middleware generates an html "diff" display using the standard Python difflib. This middleware requires the whiff_middleware/diff.css stylesheet.
whiff source generated page formatted output
temp content

whiff_middleware/displayTraceback - convert exception to HTML traceback

The whiff_middleware/displayTraceback middleware catches any exception raised by a page and renders an HTML traceback for the exception.
whiff source generated page formatted output
temp content

whiff_middleware/envValue - get environment value from computed name

The whiff_middleware/envValue gets an entry from the environment using a computed name.
whiff source generated page formatted output
temp content

whiff_middleware/evalPageFunction -- generate a server call back

create a javascript function value which "calls back" to expand a template at the server.

whiff_middleware/expandPostedTemplate - process server callback

The whiff_middleware/expandPostedTemplate middleware is useful for implementing AJAX-type functionality. It accepts a "server callback" of form
[   [parameter, value],
    [parameter, value],
    ...
    templatechunk,
    templatechunk,
    ...
    relativeUrl]
Create the template from the chunks. Insert the cgi parameters and values. Return result of executing the template as http response.

whiff_middleware/FCKInput -- embed an FCKEditor input element

The whiff_middleware/FCKInput middleware introduces an FCK editor WYSIWYG input element. (requires FCKeditor http://www.fckeditor.net/) This middleware will work correctly only if the FCK python module is installed. The FCK editor software and server pagers are not installed automatically. To install the FCK components follow the instructions at http://www.fckeditor.net/  
×
This implementation can generate values containing code injection attacks if you don't filter the output generated for evil tags and values using the TestSafeHtml middleware or some other method.
whiff source generated page formatted output
temp content

whiff_middleware/format - format a string using a dictionary

The whiff_middleware/format middleware fills in locations in a string using values from a mapping. The string substitution format is implemented using the standard Python string%dictionary format conventions.
whiff source generated page formatted output
temp content

whiff_middleware/getPage - expand CGI request as a template

The whiff_middleware/getPage middleware interpret a cgi request as a template expansion. This is useful, for example, to interpret image links as template expansions. The template to expand is provided as the required cgi variable "page". The relative URL for expansion is provided as the optional cgi variable "relativeURL". Other cgi parameters are passed through to the page.

whiff_middleware/getPageLink - generate a link which expands into a page template

The whiff_middleware/getPageLink middleware "freezes" a page into a URL link which when followed will expand into the page. This middleware is useful, for example, for inlining links to calculated images.

whiff_middleware/getResource - get a resource value

The whiff_middleware/getResource middleware gets a value associated with a resource path. As a security precaution requests which are tainted as a posted template are not allowed to directly use this middleware.
whiff source generated page formatted output
temp content

whiff_middleware/heading - create a heading cross reference

The whiff_middleware/heading middleware creates a heading entry in a page which can be cross referenced with an index generated using the headings middleware.

whiff_middleware/headings - collect headings and format index

The whiff_middleware/headings middleware collects the headers declared using the heading heading middleware and uses the headingsFormat argument to format an index.

whiff_middleware/ifcgi - test presence of cgi variables

The whiff_middleware/ifcgi middleware tests whether all listed CGI form variables are present or absent and delivers the page argument only if the variables are present. If any of the variable are absent ifcgi delivers the elsePage argument or an empty string if the elsePage is not specified. A CGI variable with a value which consists of only whitespace or an empty string is considered to be absent.
whiff source generated page formatted output
temp content

whiff_middleware/ifdef - test presence of environment variable

The whiff_middleware/ifdef middleware tests whether an environment variable is present or absent and delivers the page argument only if the variable is present. If the variable is absent ifcgi delivers the elsePage argument or an empty string if the elsePage is not specified. An environment variable with a value which tests false is considered to be absent.
whiff source generated page formatted output
temp content

whiff_middleware/ifVisible - test presence of visible text

The whiff_middleware/ifVisible middleware tests whether a test page contains visible text. If it does deliver the page argument. If the test page is all white deliver the elsePage.
whiff source generated page formatted output
temp content

whiff_middleware/image - format an img reference

The whiff_middleware/image creates an img link in a similar manner to the way the anchor middleware creates anchor links.

whiff_middleware/importResource - put resource value in environment

The whiff_middleware/importResource middleware maps a resource value into an environment entry. This is especially useful for generating temporary variable names used in multiple places in javascript code fragments.
whiff source generated page formatted output
temp content

whiff_middleware/insecureAuthorize - simple minded authorization

This is a simple and stupid WSGI authorization demo middleware based on cookies and log in forms. This is "stupid" because the cookie shows the username and password in clear text, which is not a very secure way of doing things. It's also stupid because it will not allow the successPage to have GET or POST parameters. Don't use this for serious security. It might be useful for easy but not-too-important use, or for demos.

whiff_middleware/insertIfNeeded - insert a text only once, if needed

The whiff_middleware/insertIfNeeded middleware is a mechanism to make sure that a segment of text (like a javascript function) are only introduced once. It uses local resources to indicate whether the text is already inserted or whether the text is needed.
whiff source generated page formatted output
temp content

whiff_middleware/intGetter - get int value

The whiff_middleware/intGetter middleware is a test getter for use with the loadList middleware.

whiff_middleware/link - encode a URL link

The whiff_middleware/link middleware is sometimes useful for constructing complex URLs with many CGI parameters.
whiff source generated page formatted output

whiff_middleware/listGetter - get values from a list for dropdown

The whiff_middleware/listGetter middleware is a getter for use with loadList which gets values from a data sequence.

whiff_middleware/loadList generate javascript to load a list

The whiff_middleware/absPath middleware returns a javascript function value. The action of the function is to load the target element with a list display and also assign all events to the elements as needed.
getter(prefix, matchValue="", index=None, style=default style)(env, sr)
returns dictionary
{ "format": htmlformat containing identifier,
     "value": value to deliver to target
     "action": other javascript action to execute on selection (function value, optional)
     "index": the index for the element
     "id": the id for the element
     }
or raises IndexError on index too large one of matchValue or index must be provided.
envelope(name)(env, sr)
returns an HTML page formatting the a list of dictionaries with previous and next into HTML the list of dictionaries will be stored at "name" in the environment as
[dictionaries, previous, next]
where previous and next are set null whenever they are not needed.

whiff_middleware/loadMonth - load month javascript

The whiff_middleware/listGetter middleware returns a javascript function value. The action of the function is to load the target element with a month display and also assign all events to the elements as needed.

whiff_middleware/loadTemplateFunction

The whiff_middleware/loadTemplateFunction middleware makes a javascript function which loads an HTML page and a JAVASCRIPT page from the server and sets the HTML content as the inner HTML of element with id ELEMENT_ID, and subsequently executes the javascript (for example to define callbacks for newly created elements).

whiff_middleware/logoutProfile - forget profile connection

The whiff_middleware/listGetter middleware forgets a profile login.

whiff_middleware/mCategory - define menu category

The whiff_middleware/mCategory middleware encloses a menu category with title and items.

whiff_middleware/menuFromList - format menu from list.

The whiff_middleware/menuFromList middleware constructs a text for a menu from list of dictionaries describing categories.

whiff.middleware.misc - miscellaneous support module

The misc module is not a middleware -- it is a module that provides miscellaneous support functions to other middleware modules.

whiff_middleware/mItem - define menu item

The whiff_middleware/mItem middleware defines a menu item for inclusion in a drop down menu.

whiff_middleware/mMenu - define menu

The whiff_middleware/mMenu middleware creates a page fragment which implements a menu implementation based loosely on http://www.alistapart.com/articles/dropdowns/

whiff_middleware/monthHtml - generate a month popup

The whiff_middleware/monthHtml middleware returns HTML content for a month popup.

whiff_middleware/newProfile - create a profile object

The whiff_middleware/newProfile middleware establishes a new user profile.

whiff_middleware/Noop - no-operation middleware

The whiff_middleware/Noop middleware sends its input page as its output without changing it. the no-operation middleware is often used as a placeholder during development and testing.

whiff_middleware/oneLine - collapse white space

The oneLine middleware return content of page on one line with whitespace collapsed to single blank. This is useful, when appropriate, for reducing URL lengths and the lengths of other data transfers.

whiff_middleware/pageToUrl - encode a page as a URL

The whiff_middleware/absPath middleware creates a URL encoding of a page. This is the inverse operation of urlToPage.
whiff source generated page formatted output
temp content

whiff_middleware/png/... - PNG image demo components subpackage

The whiff_middleware/png package provides examples of how to generate images using WHIFF techniques. All components in the png package require the SkimpyGimpy package, which must be installed separately. See http://skimpyGimpy.sourceforge.net.

whiff_middleware/png/barChart - generate a PNG bar chart

The whiff_middleware/png/barChart middleware generates a PNG image bar chart. The bar chart generated is not fancy or feature rich. This middleware is provided primarily to help illustrate the use of WHIFF features, such as image link indirection.

whiff_middleware/png/barChartLink - link to bar chart

The whiff_middleware/png/barChartLink middleware generates a link which evaluates to a bar chart.
whiff source generated page formatted output

whiff_middleware/png/bnfImage - generate a PNG image of a BNF railroad diagram

The whiff_middleware/png/bnfImage middleware generates a PNG image of a BNF railroad diagram. The generated image is not fancy or feature rich. This middleware is provided primarily to help illustrate the use of WHIFF features, such as image link indirection.

whiff_middleware/png/ERdiagram - generate a PNG image of an Entity-Relationship diagram

The whiff_middleware/png/ERdiagram middleware generates a PNG image of an Entity-Relationship diagram. The generated image is not fancy or feature rich. This middleware is provided primarily to help illustrate the use of WHIFF features, such as image link indirection.

whiff_middleware/png/pieChart - generate a PNG pie chart

The whiff_middleware/png/pieChart middleware generates a PNG image pie chart. The pie chart generated is not fancy or feature rich. This middleware is provided primarily to help illustrate the use of WHIFF features, such as image link indirection.

whiff_middleware/png/pieChartLink - link to pie chart

The whiff_middleware/png/pieChartLink middleware generates a link which evaluates to a pie chart.
whiff source generated page formatted output

whiff_middleware/png/schemaDiagram - generate a PNG image of relational database schema

The whiff_middleware/png/schemaDiagram middleware generates a PNG image of a relational database schema. The generated image is not fancy or feature rich. This middleware is provided primarily to help illustrate the use of WHIFF features, such as image link indirection.

whiff_middleware/PopUpJS - load content and pop-up HTML section

The whiff_middleware/PopUpJS middleware returns javascript to popup targetId with content loaded from page, providing both show (popup) and hide functions.

whiff_middleware/printMessage - print console message

The whiff_middleware/printMessage middleware prints a message to the standard output and returns an empty result response.

whiff_middleware/putResource - install a resource value by path

The whiff_middleware/putResource middleware attempts to install a resource value at a path. As a security precaution, templates which are tainted by a remote submission are not allowed to directly execute this middleware.
whiff source generated page formatted output
temp content

whiff_middleware/pygmentsColorize - colorize programming language text

The whiff_middleware/pygmentsColorize middleware colorizes a programming language text fragment. This middleware will not work unless the Pygments software is installed separately for the Python installation. The Pygments installation is not automatic. The page using this module must also include the pygmentsCss stylesheet.
whiff source generated page formatted output
temp content

whiff_middleware/pygmentsCss - provide CSS class definitions

The whiff_middleware/absPath middleware generates a Pygments CSS style definition sequence. The optional cssClassName argument allows definition of a non-default css class name.

whiff_middleware/quoteHtml - quote HTML special characters

The whiff_middleware/quoteHtml middleware replaces special characters in an html page stream to make the HTML markup visible when displayed as HTML.
whiff source generated page formatted output
temp content

whiff_middleware/redirect - redirect the client to another URL

The whiff_middleware/redirect middleware sends a response which redirects the client to another URL location.

whiff_middleware/repeat - repeat page for each element of sequence

The whiff_middleware/repeat middleware iterates over each element of its sequence argument, generating the page argument for each iteration. the sequence element will be set to the environment entry named by the variable argument. If the sequence variable is not provided and the datavariable argument is defined the middleware will use the environment entry named by the environment entry named by datavariable
whiff source generated page formatted output
temp content

whiff_middleware/repoze/... - repoze package wrapper sub-package

The whiff_middleware/repoze package provides wrappers for repoze.org packages. These modules are useful in their own right and also illustrate how to conveniently embed a complex WSGI component suite within the WHIFF infrastructure. All components in the repoze package require external repoze.org which must be installed separately. See http://www.repoze.org.

whiff_middleware/repoze/allow -- allow listed authenticated users to view the page or application

The whiff_middleware/repoze/allow middleware checks whether the user is authenticated and allows only listed authenticated users to view the page argument. The users argument may be a JSON sequence of user names or true (to indicate any authenticated users) or null to indicate that the page is intended only for logged out users.

whiff_middleware/repoze/onStatus - deliver different responses to logged in or logged out user

The whiff_middleware/repoze/onStatus middleware tests whether the user has been authenticated by repoze.who -- authenticated users receive the loggedIn page, and non-authenticated users receive the unknown page.

whiff_middleware/repoze/protect - protect page/application from unauthorized access

The whiff_middleware/repoze/allow middleware is essentially a combination of who and allow -- protect attempts to authenticate the user using who and then uses allow to decide whether the user should be permitted to view the page.

whiff_middleware/repoze/uid - get user name for authenticated user

The whiff_middleware/repoze/uid gets the user name for the user authenticated using repoze.who.

whiff_middleware/repoze/who - attempt to authenticate user using repoze.who

The whiff_middleware/repoze/who middleware is a WHIFF interface for repoze.who.middleware.PluggableAuthenticationMiddleware. All non-default parameters for the middleware except for the page/application must be installed as WHIFF resources.

whiff_middleware/session - get or assign server session for client

The whiff_middleware/session middleware gets or assigns a valid session identifier by looking at a cookie and checking the "session" resource for validity. The built in WHIFF session protocol uses a session resource which works like this
prefix+["id", oldId] --> oldId if the old Id is valid
prefix+["id", oldId] --> newId if the old Id is invalid or timed out, etc.
The validated session id is placed in the environment (by default at "whiff.session.id").

The "id" literal is added for extra paranoid security to prevent an intruder from using another resource to spoof a session id.

If the session middleware is inadvertently used several times for the same request it should cause no harm (except for slowing things down a bit).

whiff_middleware/setInnerHTML - set inner html for element to page

The whiff_middleware/innerHTML middleware generates javascript code to set the innerHtml of the HTML DOM element with name elementName to the contents of page.

whiff_middleware/setTarget - set javascript properties for HTML DOM element

The whiff_middleware/setTarget middleware assigns the innerHtml and javascript callbacks for an HTML DOM element.

whiff_middleware/skimpy - a CAPTCHA protocol middleware

The whiff_middleware/skimpy middleware implements a simple CAPTCHA using cookies and WHIFF session resources. This middleware will only work correctly if skimpyGimpy is installed separately. The skimpyGimpy package is not installed automatically.

whiff_middleware/sortTable - tool for building tables with sorted rows

The whiff_middleware/sortTable middleware uses cgi arguments and environment entries to prepare input data for a table with rows sorted by one of the column values
whiff source generated page formatted output
temp content

whiff_middleware/switch - switch on string cases

The whiff_middleware/switch middleware delivers the page whose case_ name matches the value
whiff source generated page formatted output
temp content

whiff_middleware/TestSafeHtml - test/strip dangerous HTML tags from text

The whiff_middleware/TestSafeHtml middleware looks for dangerous HTML constructs in an HTML text. If dangerous tags are found the report of complaints will be placed in the whiff.middleware.deletedhtml environment entry (by default). The HTML stripped of any unsafe constructs will be placed in the whiff.middleware.safehtml environment entry (by default).
whiff source generated page formatted output
temp content

whiff_middleware/unauthorized - return "unauthorized" response

The whiff_middleware/unauthorized sends an HTTP response telling the client that the request cannot be answered as requested because the client is not authorized to access the resource.

whiff_middleware/undef - undefine an environment entry for page

The whiff_middleware/undef middleware "hides" an environment entry from its page argument, evaluating the page (and its components recursively) with a modified environment which does not contain the environment entry.
whiff source generated page formatted output
temp content

whiff_middleware/unquoteHtml - unquote HTML markup

The whiff_middleware/unquoteHtml middleware reverses "quoting" of HTML markup in the page argument.
whiff source generated page formatted output
temp content

whiff_middleware/urlToPage - convert URL to page

The whiff_middleware/urlToPage middleware converts a URL to a page. This is the inverse operation of pageToUrl.

whiff_middleware/whiff.js - standard WHIFF javascript functionality

The whiff_middleware/whiff.js middleware generates javascript used by many of the other whiff_middleware components, largely concerned with implementing AJAX-like functionality.

whiff_middleware/whiffColorize - colorize WHIFF source embedded in HTML (or other format)

The whiff_middleware/whiffColorize middleware converts WHIFF text embedded in HTML text into an HTML colorized format. It is also possible to colorize WHIFF embedded in any other format supported by Pygments. This middleware requires the Pygments package which must be installed separately and is not automatically installed. The colorized output HTML uses CSS classes defined in the PygmentsCSS stylesheet.

whiff_middleware/wrapIfHtml - apply wrapper only to HTML content

The whiff_middleware/wrapIfHtml middleware applies a middleware to the page only if the page generates HTML content. This is useful, for example to provide standard headers and footers to all applications under a root directory that produce HTML, without damaging any PDF or binary image content produced by applications in that directory.
0 comments.
Care to comment?
name: (required)
- email (not published):
comment: (required)

<< security number? >>