Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 4748:e339583eae8e
templating: rename precompileTemplates to precompile
| author | anatoly techtonik <techtonik@gmail.com> |
|---|---|
| date | Mon, 21 Jan 2013 23:51:39 +0300 |
| parents | 955860a18e12 |
| children | 0421390b3094 |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Mon Jan 21 23:04:55 2013 +0300 +++ b/roundup/cgi/templating.py Mon Jan 21 23:51:39 2013 +0300 @@ -84,9 +84,11 @@ # loaders are given the template directory as a first argument pass - def precompileTemplates(self): - """ Go through a directory and precompile all the templates therein + def precompile(self): + """ This method may be called when tracker is loaded to precompile + templates that support this ability. """ + # [ ] move implementation out of API for filename in os.listdir(self.dir): # skip subdirs if os.path.isdir(filename): @@ -120,6 +122,7 @@ def __getitem__(self, name): """Special method to access templates by loader['name']""" + # [ ] not sure if it is needed for anything except TAL templates try: return self.load(name) except NoTemplate, message:
