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
021ab20a
Commit
021ab20a
authored
Dec 31, 2011
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed index to start_index.
parent
cb8c06ca
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 @
021ab20a
...
@@ -154,7 +154,7 @@ class Template(object):
...
@@ -154,7 +154,7 @@ class Template(object):
return
parse_tree
return
parse_tree
def
_handle_match
(
self
,
template
,
match
,
buffer
,
index
):
def
_handle_match
(
self
,
template
,
match
,
buffer
,
start_
index
):
# Normalize the captures dictionary.
# Normalize the captures dictionary.
captures
=
match
.
groupdict
()
captures
=
match
.
groupdict
()
if
captures
[
'change'
]
is
not
None
:
if
captures
[
'change'
]
is
not
None
:
...
@@ -202,7 +202,7 @@ class Template(object):
...
@@ -202,7 +202,7 @@ class Template(object):
tag
=
{
'#'
:
sectionTag
,
'^'
:
inverseTag
}[
captures
[
'tag'
]]
tag
=
{
'#'
:
sectionTag
,
'^'
:
inverseTag
}[
captures
[
'tag'
]]
buffer
.
append
(
tag
(
name
,
bufr
,
tmpl
,
(
self
.
otag
,
self
.
ctag
)))
buffer
.
append
(
tag
(
name
,
bufr
,
tmpl
,
(
self
.
otag
,
self
.
ctag
)))
elif
captures
[
'tag'
]
==
'/'
:
elif
captures
[
'tag'
]
==
'/'
:
raise
EndOfSection
(
buffer
,
template
[
index
:
tagPos
],
pos
)
raise
EndOfSection
(
buffer
,
template
[
start_
index
:
tagPos
],
pos
)
elif
captures
[
'tag'
]
in
[
'{'
,
'&'
]:
elif
captures
[
'tag'
]
in
[
'{'
,
'&'
]:
buffer
.
append
(
unescapedTag
(
name
,
(
self
.
otag
,
self
.
ctag
)))
buffer
.
append
(
unescapedTag
(
name
,
(
self
.
otag
,
self
.
ctag
)))
elif
captures
[
'tag'
]
==
''
:
elif
captures
[
'tag'
]
==
''
:
...
...
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