Package lemon :: Package external :: Package Cheetah :: Module Filters :: Class StripSqueeze
[show private | hide private]
[frames | no frames]

Class StripSqueeze

Filter --+
         |
        StripSqueeze


Canonicalizes every chunk of whitespace to a single space.

Strips leading/trailing whitespace.  Removes all newlines, so multi-line
input is joined into one ling line with NO trailing newline.

Method Summary
  filter(self, val, **kw)
Replace None with an empty string.
    Inherited from Filter
  __init__(self, templateObj)
Setup a ref to the templateObj.
  generateAutoArgs(self)
This hook allows the filters to generate an arg-list that will be appended to the arg-list of a $placeholder tag when it is being translated into Python code during the template compilation process.

Method Details

filter(self, val, **kw)

Replace None with an empty string.  Reimplement this method if you
want more advanced filterting.
Overrides:
lemon.external.Cheetah.Filters.Filter.filter (inherited documentation)

Generated by Epydoc 2.0 on Mon Nov 10 15:07:48 2003 http://epydoc.sf.net