Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pystache_custom
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
pystache_custom
Commits
0b41209d
Commit
0b41209d
authored
Dec 23, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved the Renderer.render() docstring.
parent
96af7f72
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
pystache/renderer.py
+9
-9
No files found.
pystache/renderer.py
View file @
0b41209d
...
@@ -167,19 +167,19 @@ class Renderer(object):
...
@@ -167,19 +167,19 @@ class Renderer(object):
"""
"""
Render the given template using the given context.
Render the given template using the given context.
The return value is a unicode string, unless the output_encoding
Returns:
attribute has been set to a non-None value, in which case the
return value has type str and is encoded using that encoding.
If the template string is not unicode, it is first converted to
If the output_encoding attribute is None, the return value is
unicode using the default_encoding and decode_errors attributes.
a unicode string. Otherwise, the return value is encoded to a
See the Template constructor's docstring for more information.
string of type str using the output encoding named by the
output_encoding attribute.
Arguments:
Arguments:
template: a template string that is either unicode, or of type
template: a template string that is either unicode or of type str.
str and encoded using the encoding named by the default_encoding
If the string has type str, it is first converted to unicode
keyword argument.
using the default_encoding and decode_errors attributes of this
instance. See the constructor docstring for more information.
context: a dictionary, Context, or object (e.g. a View instance).
context: a dictionary, Context, or object (e.g. a View instance).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment