Cheetah Developers' Guide
Next:
Contents
Cheetah Developers' Guide
Mike Orr with assistance from Tavis Rudd
iron@mso.oz.net
Contents
1 Introduction
1.1 Who should read this Guide?
1.2 Contents
2 .py Template Modules
2.1 An example
2.2 A walk through the example
3 Placeholders
3.1 Simple placeholders
3.2 Complex placeholders
4 Caching placeholders and #cache
4.1 Dynamic placeholder - no cache
4.2 Static placeholder
4.3 Timed-refresh placeholder
4.4 Timed-refresh placeholder with braces
4.5 #cache
4.6 #cache with timer and id
4.7 #cache with test: expression and method conditions
5 Directives: Comments
5.1 Docstring and header comments
6 Directives: Output
6.1 #echo
6.2 #silent
6.3 #raw
6.4 #include
6.4.1 #include raw
6.4.2 #include from a string or expression (eval)
6.5 #slurp
6.6 #filter
7 Directives: Import, Inheritance, Declaration and Assignment
7.1 #import and #from
7.2 #extends
7.3 #implements
7.4 #set and #set global
7.5 #del
7.6 #attr
7.7 #def
7.8 #block
7.9 #settings
8 Directives: Flow Control
8.1 #for
8.2 #repeat
8.3 #while
8.4 #if
8.5 #unless
8.6 #break and #continue
8.7 #pass
8.8 #stop
8.9 #return
9 Directives: Error Handling
9.1 #try and #raise
9.2 #assert
9.3 #errorCatcher
9.3.1 No error catcher
9.3.2 Echo and BigEcho
9.3.3 ListErrors
10 Directives: Parser Instructions
10.1 #breakpoint
10.2 #compiler
11 Files
12 Template
13 The parser
14 The compiler
15 History of Cheetah
16 Design Decisions and Tradeoffs
16.1 Delimiters
16.2 Late binding
16.3 Caching framework
16.4 Webware compatibility and the transaction framework
16.5 Single inheritance
17 Patching Cheetah
17.1 File Requirements
17.2 Testing Changes and Building Regression Tests
18 Documenting Cheetah
A. A BNF Grammar of Cheetah
B. Safe Delegation
About this document ...
Cheetah Developers' Guide
Next:
Contents
Release 0.9.15a1.