If you use Cheetah, please support the project and register by clicking here:


7.2 Executing expressions without output: #silent

Syntax:

#silent EXPR

#silent is the opposite of #echo. It executes an expression but discards the output.

#silent $myList.reverse()
#silent $myList.sort()
Here is #silent $covertOperation() # nothing

If your template requires some Python code to be executed at the beginning; (e.g., to calculate placeholder values, access a database, etc), you can put it in a "doEverything" method you inherit, and call this method using #silent at the top of the template.

If you use Cheetah, please support the project and register by clicking here: