diff options
| author | Chris McDonough <chrism@agendaless.com> | 2008-07-16 22:12:03 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2008-07-16 22:12:03 +0000 |
| commit | 8b169d338e1ea6d07bc3cd0c9ff0b0ae91c56708 (patch) | |
| tree | ba476bfbc868a2b5f202fe79d8b36b21290e6351 /repoze/bfg/template.py | |
| parent | 80e4cf02ffd6f1e6b1c140dc2235424e7c1a276f (diff) | |
| download | pyramid-8b169d338e1ea6d07bc3cd0c9ff0b0ae91c56708.tar.gz pyramid-8b169d338e1ea6d07bc3cd0c9ff0b0ae91c56708.tar.bz2 pyramid-8b169d338e1ea6d07bc3cd0c9ff0b0ae91c56708.zip | |
Doc tweaks.
Diffstat (limited to 'repoze/bfg/template.py')
| -rw-r--r-- | repoze/bfg/template.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/repoze/bfg/template.py b/repoze/bfg/template.py index dd0778a43..78529eb40 100644 --- a/repoze/bfg/template.py +++ b/repoze/bfg/template.py @@ -70,6 +70,9 @@ def registerTemplate(template, path): sm.registerUtility(template, IView, name=path) def render_template(path, **kw): + """ Render a z3c.pt (ZPT) template at the package-relative path + (may also be absolute) using the kwargs in ``*kw`` as top-level + names and return a Response object. """ # XXX use pkg_resources if not os.path.isabs(path): @@ -90,6 +93,9 @@ def render_template(path, **kw): return template(**kw) def render_transform(path, **kw): + """ Render a XSL template at the package-relative path (may also + be absolute) using the kwargs in ``*kw`` as top-level names and + return a Response object.""" # Render using XSLT if not os.path.isabs(path): |
