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
58e427d2
Commit
58e427d2
authored
Jan 14, 2012
by
Chris Jerdonek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reordered tag_type "switch" statement.
parent
6240fe23
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
pystache/parser.py
+8
-8
No files found.
pystache/parser.py
View file @
58e427d2
...
...
@@ -155,9 +155,13 @@ class Parser(object):
engine
=
self
.
engine
if
tag_type
==
'
>
'
:
if
tag_type
==
''
:
func
=
engine
.
_make_get_partial
(
tag_key
,
leading_whitespace
)
func
=
engine
.
_make_get_escaped
(
tag_key
)
elif
tag_type
==
'&'
:
func
=
engine
.
_make_get_literal
(
tag_key
)
elif
tag_type
==
'#'
:
...
...
@@ -169,13 +173,9 @@ class Parser(object):
buff
,
template
,
end_index
=
self
.
_parse_section
(
template
,
end_index
)
func
=
engine
.
_make_get_inverse
(
tag_key
,
buff
)
elif
tag_type
==
'&'
:
func
=
engine
.
_make_get_literal
(
tag_key
)
elif
tag_type
==
'>'
:
elif
tag_type
==
''
:
func
=
engine
.
_make_get_escaped
(
tag_key
)
func
=
engine
.
_make_get_partial
(
tag_key
,
leading_whitespace
)
elif
tag_type
==
'/'
:
...
...
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