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
abe5700e
Commit
abe5700e
authored
Dec 23, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjusted the Render.__init__() docstring.
parent
0b41209d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
pystache/renderer.py
+12
-11
No files found.
pystache/renderer.py
View file @
abe5700e
...
@@ -31,19 +31,20 @@ class Renderer(object):
...
@@ -31,19 +31,20 @@ class Renderer(object):
output_encoding: the encoding to use when rendering to a string.
output_encoding: the encoding to use when rendering to a string.
The argument should be the name of an encoding as a string, for
The argument should be the name of an encoding as a string, for
example "utf-8". See the render() method's documentation for
more
example "utf-8". See the render() method's documentation for
information.
more
information.
escape: the function used to escape mustache variable values
escape: the function used to escape mustache variable values
when rendering a template. The function should accept a unicode
when rendering a template. The function should accept a
string and return an escaped string of the same type. It need
unicode string and return an escaped string of the same type.
not handle strings of type `str` because this class will only
This function need not handle strings of type `str` because
pass it unicode strings. The constructor assigns this escape
this class will only pass it unicode strings. The constructor
function to the constructed instance's Template.escape() method.
assigns this function to the constructed instance's escape()
method.
The argument defaults to markupsafe.escape when markupsafe is
The argument defaults to markupsafe.escape when markupsafe
importable and cgi.escape otherwise. To disable escaping entirely,
is importable and cgi.escape otherwise. To disable escaping
one can pass `lambda s: s` as the escape function, for example.
entirely, one can pass `lambda u: u` as the escape function,
for example.
default_encoding: the name of the encoding to use when converting
default_encoding: the name of the encoding to use when converting
to unicode any strings of type `str` encountered during the
to unicode any strings of type `str` encountered during the
...
...
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