diff roundup/cgi/templating.py @ 4737:dfa516063571

Doc: Improve Loader.load() description.
author anatoly techtonik <techtonik@gmail.com>
date Mon, 14 Jan 2013 18:38:20 +0300
parents 4caa6de726a5
children fe9568a6cbd6
line wrap: on
line diff
--- a/roundup/cgi/templating.py	Mon Jan 14 18:26:09 2013 +0300
+++ b/roundup/cgi/templating.py	Mon Jan 14 18:38:20 2013 +0300
@@ -146,11 +146,11 @@
                 self.load(filename, None)
 
     def load(self, name, view=None):
-        """ Interface to get a template, possibly loading a compiled template.
-
-            "name" and "view" indicate the template we're after, which in
-            most cases will be "name.view". If "view" is None, then
-            we look for a template just called "name".
+        """ Load template and return template object with render() method.
+
+            "name" and "view" are used to select the template, which in
+            most cases will be "name.view". If "view" is None, then a
+            template called "name" will be selected.
 
             If the file "name.view" doesn't exist, we look for
             "_generic.view" as a fallback.

Roundup Issue Tracker: http://roundup-tracker.org/