Package lemon :: Package external :: Package Cheetah :: Module CheetahWrapper
[show private | hide private]
[frames | no frames]

Module lemon.external.Cheetah.CheetahWrapper

Cheetah command-line interface.

2002-09-03 MSO: Total rewrite.
2002-09-04 MSO: Bugfix, compile command was using wrong output ext.
2002-11-08 MSO: Another rewrite.

Meta-Data
================================================================================
Author: Tavis Rudd <tavis@damnsimple.com> and Mike Orr <iron@mso.oz.net>
Version: $Revision: 1.1 $
Start Date: 2001/03/30
Last Revision Date: $Date: 2003/08/12 09:17:11 $

Classes
Bundle Wrap the source, destination and backup paths in one neat little class.
CheetahWrapper  
MyOptionParser  

Exceptions
Error  

Variable Summary
str __author__ = 'Tavis Rudd <tavis@damnsimple.com> and Mike...
str __revision__ = '1.1'
str HELP_PAGE1 = 'USAGE:\n------\n  cheetah compile [options...
str HELP_PAGE2 = 'OPTIONS FOR "compile" AND "fill":\n-------...
SRE_Pattern moduleNameRx = ^[a-zA-Z_][a-zA-Z_0-9]*$
SRE_Pattern optionDashesRx = ^-{1,2}
str WRAPPER_TOP = '         __  ____________  __\n         \...

Variable Details

__author__

Type:
str
Value:
'Tavis Rudd <tavis@damnsimple.com> and Mike Orr <iron@mso.oz.net>'     

__revision__

Type:
str
Value:
'1.1'                                                                  

HELP_PAGE1

Type:
str
Value:
'''USAGE:
------
  cheetah compile [options] [FILES ...]     : Compile template definit\
ions
  cheetah fill [options] [FILES ...]        : Fill template definition\
s
  cheetah help                              : Print this help message
  cheetah options                           : Print options help messa\
...                                                                    

HELP_PAGE2

Type:
str
Value:
'''OPTIONS FOR "compile" AND "fill":
---------------------------------
  --idir DIR, --odir DIR : input/output directories (default: current \
dir)
  --iext EXT, --oext EXT : input/output filename extensions
    (default for compile: tmpl/py,  fill: tmpl/html)
  -R            : recurse subdirectories looking for input files
  --debug       : print lots of diagnostic output to standard error
...                                                                    

moduleNameRx

Type:
SRE_Pattern
Value:
^[a-zA-Z_][a-zA-Z_0-9]*$                                               

optionDashesRx

Type:
SRE_Pattern
Value:
^-{1,2}                                                                

WRAPPER_TOP

Type:
str
Value:
'''         __  ____________  __
         \\ \\/            \\/ /
          \\/    *   *     \\/    CHEETAH 0.9.15 Command-Line Tool
           \\      |       / 
            \\  ==----==  /      by Tavis Rudd <tavis@damnsimple.com>
             \\__________/       and Mike Orr <iron@mso.oz.net>
              
'''                                                                    

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