spyce
         
home     documentation     download     Spyce logo


Documentation - Language

Prev: 2.6 - Python Class Chunks Up: 2 - Language Next: 2.8 - Spyce Lambdas

2.7. Python Expressions

Syntax: [[= expression ]]

The contents of an expression tag is a Python expression. The result of that expression evaluation is printed using the its string representation. The Python object None is special cased to output as the empty string just as it is in the Python interactive shell. This is almost always more convenient when working with HTML. (If you really want a literal string 'None' emitted instead, use response.write in a statement or chunk.)

The Spyce transform module, can pre-processes this result, to assist with mundane tasks such as ensuring that the string is properly HTML-encoded, or formatted.


Prev: 2.6 - Python Class Chunks Up: 2 - Language Next: 2.8 - Spyce Lambdas


Spyce logo
Python Server Pages
version 2.1.3
Spyce Powered SourceForge Logo