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
b808970c
Commit
b808970c
authored
Jan 13, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplified the template regex: removed the "content" group.
parent
7cfa4b13
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
pystache/renderengine.py
+6
-5
No files found.
pystache/renderengine.py
View file @
b808970c
...
...
@@ -24,7 +24,6 @@ def _compile_template_re(delimiters):
# NOT containing the current closing delimiter.
#
tag
=
r"""
(?P<content>[\s\S]*?)
(?P<whitespace>[\ \t]*)
%(otag)
s \s*
(?:
...
...
@@ -326,12 +325,14 @@ class RenderEngine(object):
if
match
is
None
:
break
matches
=
match
.
groupdict
()
match_index
=
match
.
end
(
'content'
)
match_index
=
match
.
start
()
end_index
=
match
.
end
()
parse_tree
.
append
(
matches
[
'content'
])
before_tag
=
template
[
index
:
match_index
]
parse_tree
.
append
(
before_tag
)
matches
=
match
.
groupdict
()
index
=
self
.
_handle_match
(
template
,
parse_tree
,
matches
,
start_index
,
match_index
,
end_index
)
...
...
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