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
b2137d4f
Commit
b2137d4f
authored
Dec 17, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unused view parameter from Template._render_sections().
parent
050ab67d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pystache/template.py
+2
-2
No files found.
pystache/template.py
View file @
b2137d4f
...
@@ -116,7 +116,7 @@ class Template(object):
...
@@ -116,7 +116,7 @@ class Template(object):
tag
=
r"
%(otag)
s(#|=|&|!|>|\{)?(.+?)\1?
%(ctag)
s+"
tag
=
r"
%(otag)
s(#|=|&|!|>|\{)?(.+?)\1?
%(ctag)
s+"
self
.
tag_re
=
re
.
compile
(
tag
%
tags
)
self
.
tag_re
=
re
.
compile
(
tag
%
tags
)
def
_render_sections
(
self
,
template
,
view
):
def
_render_sections
(
self
,
template
):
while
True
:
while
True
:
match
=
self
.
section_re
.
search
(
template
)
match
=
self
.
section_re
.
search
(
template
)
if
match
is
None
:
if
match
is
None
:
...
@@ -240,7 +240,7 @@ class Template(object):
...
@@ -240,7 +240,7 @@ class Template(object):
Return the template rendered using the current view context.
Return the template rendered using the current view context.
"""
"""
template
=
self
.
_render_sections
(
self
.
template
,
self
.
view
)
template
=
self
.
_render_sections
(
self
.
template
)
result
=
self
.
_render_tags
(
template
)
result
=
self
.
_render_tags
(
template
)
if
encoding
is
not
None
:
if
encoding
is
not
None
:
...
...
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