Skip to content

Commit 75d223a

Browse files
committed
Doc: Improve Loader.load() description.
1 parent e7f1c99 commit 75d223a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

roundup/cgi/templating.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,11 @@ def precompileTemplates(self):
146146
self.load(filename, None)
147147

148148
def load(self, name, view=None):
149-
""" Interface to get a template, possibly loading a compiled template.
149+
""" Load template and return template object with render() method.
150150
151-
"name" and "view" indicate the template we're after, which in
152-
most cases will be "name.view". If "view" is None, then
153-
we look for a template just called "name".
151+
"name" and "view" are used to select the template, which in
152+
most cases will be "name.view". If "view" is None, then a
153+
template called "name" will be selected.
154154
155155
If the file "name.view" doesn't exist, we look for
156156
"_generic.view" as a fallback.

0 commit comments

Comments
 (0)