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
cf1c649f
Commit
cf1c649f
authored
May 05, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need to cache the tag_key.
parent
d7fac0b9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
pystache/parser.py
+3
-3
No files found.
pystache/parser.py
View file @
cf1c649f
...
...
@@ -146,7 +146,7 @@ class Parser(object):
if
tag_type
in
(
'#'
,
'^'
):
# Cache current state.
state
=
(
tag_type
,
tag_key
,
end_index
,
section_key
,
parsed_template
)
state
=
(
tag_type
,
end_index
,
section_key
,
parsed_template
)
states
.
append
(
state
)
# Initialize new state
...
...
@@ -160,9 +160,9 @@ class Parser(object):
# Restore previous state with newly found section data.
parsed_section
=
parsed_template
(
tag_type
,
tag_key
,
end
_index
,
section_key
,
parsed_template
)
=
states
.
pop
()
(
tag_type
,
section_start
_index
,
section_key
,
parsed_template
)
=
states
.
pop
()
node
=
self
.
_make_section_node
(
template
,
tag_type
,
tag_key
,
parsed_section
,
end
_index
,
match_index
)
section_start
_index
,
match_index
)
else
:
node
=
self
.
_make_interpolation_node
(
tag_type
,
tag_key
,
leading_whitespace
)
...
...
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