[[.import names="pool"]]
<html><body>
The pool module supports long-lived server-pooled objects,<br>
useful for database connections, and other variables<br>
that are expensive to compute.<br>
[[\
if pool.has_key('foo'):
print 'Pooled object foo EXISTS.'
else:
pool['foo'] = 1
print 'Pooled object foo CREATED.'
]]
<br>
Value: [[=pool['foo'] ]] <p>
The pool module also gives access to server variables set in
the server configuration file: <br>
[[=pool.server]]<br>
<b>Note:</b> This example requires a long-lived server to
function correctly, i.e. non-CGI environment.
</body></html>