Mercurial > genshi > mirror
comparison examples/includes/run.py @ 22:2483fe549959 trunk
Fix for the template engine plugin: the search path is now ignored if the requested template path is absolute.
author | cmlenz |
---|---|
date | Tue, 20 Jun 2006 15:10:24 +0000 |
parents | b4d17897d053 |
children | d88358f719fa |
comparison
equal
deleted
inserted
replaced
21:b4d17897d053 | 22:2483fe549959 |
---|---|
27 times = [] | 27 times = [] |
28 for i in range(100): | 28 for i in range(100): |
29 timing.start() | 29 timing.start() |
30 list(tmpl.generate(Context(**data))) | 30 list(tmpl.generate(Context(**data))) |
31 timing.finish() | 31 timing.finish() |
32 times.append(timing.milli()) | |
32 sys.stdout.write('.') | 33 sys.stdout.write('.') |
33 sys.stdout.flush() | 34 sys.stdout.flush() |
34 times.append(timing.milli()) | |
35 print | 35 print |
36 | 36 |
37 print ' --> render stage: %dms (avg), %dms (min), %dms (max)' % ( | 37 print ' --> render stage: %dms (avg), %dms (min), %dms (max)' % ( |
38 sum(times) / len(times), min(times), max(times)) | 38 sum(times) / len(times), min(times), max(times)) |
39 | 39 |