cheetah users' guidecheetahtemplate.sourceforge.net/docs/users_guide.pdf · 2005-05-18 · 1...

95
Cheetah Users’ Guide Release 0.9.17rc1 Edited by Mike Orr and Tavis Rudd May 17, 2005 [email protected] Contents 1 Introduction 5 1.1 Who should read this Guide? ....................................... 5 1.2 What is Cheetah? ............................................. 5 1.3 What is the philosophy behind Cheetah? ................................. 5 Why Cheetah doesn’t use HTML-style tags ............................... 6 1.4 Give me an example! ........................................... 6 1.5 Give me an example of a Webware servlet! ............................... 7 1.6 How mature is Cheetah? ......................................... 8 1.7 Where can I get news? .......................................... 8 1.8 How can I contribute? ........................................... 9 Bug reports and patches .......................................... 9 Example sites and tutorials ........................................ 9 Template libraries and function libraries ................................. 9 Test cases ................................................. 9 Publicity .................................................. 9 1.9 Acknowledgements ............................................ 9 1.10 License .................................................. 10 2 Vocabulary 11 3 Getting Started 12 3.1 Requirements ............................................... 12 3.2 Installation ................................................ 12 3.3 Files .................................................... 12 3.4 Uninstalling ................................................ 12 3.5 The ’cheetah’ command ......................................... 12 3.6 Testing your installation ......................................... 13 3.7 Quickstart tutorial ............................................. 14 4 How Cheetah Works 16 4.1 Constructing Template Objects ...................................... 16 4.2 “cheetah compile” and .py template modules ............................... 17 4.3 “cheetah fill” ............................................... 19 4.4 Some trivia about .py template modules ................................. 20 4.5 Running a .py template module as a standalone program ........................ 20 4.6 Object-Oriented Documents ....................................... 20

Upload: others

Post on 12-Jul-2020

2 views

Category:

Documents


0 download