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
2825d34e
Commit
2825d34e
authored
Jan 27, 2011
by
Carl Whittaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing cruft.
parent
ede055af
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
9 deletions
+0
-9
pystache/template.py
+0
-3
tests/test_view.py
+0
-6
No files found.
pystache/template.py
View file @
2825d34e
...
@@ -61,9 +61,6 @@ class Template(object):
...
@@ -61,9 +61,6 @@ class Template(object):
it
=
self
.
view
.
get
(
section_name
,
None
)
it
=
self
.
view
.
get
(
section_name
,
None
)
replacer
=
''
replacer
=
''
# Exception
if
it
and
isinstance
(
it
,
Exception
):
raise
it
# Callable
# Callable
if
it
and
isinstance
(
it
,
collections
.
Callable
):
if
it
and
isinstance
(
it
,
collections
.
Callable
):
replacer
=
it
(
inner
)
replacer
=
it
(
inner
)
...
...
tests/test_view.py
View file @
2825d34e
...
@@ -97,12 +97,6 @@ class TestView(unittest.TestCase):
...
@@ -97,12 +97,6 @@ class TestView(unittest.TestCase):
view
.
template
=
"{{#parent}}{{#children}}{{this}}{{/children}}{{/parent}}"
view
.
template
=
"{{#parent}}{{#children}}{{this}}{{/children}}{{/parent}}"
self
.
assertEquals
(
view
.
render
(),
'derp'
)
self
.
assertEquals
(
view
.
render
(),
'derp'
)
def
test_context_returns_a_flattened_dict
(
self
):
view
=
Simple
()
view
.
context_list
=
[{
'one'
:
'1'
},
{
'two'
:
'2'
}]
self
.
assertEqual
(
view
.
context
,
{
'one'
:
'1'
,
'two'
:
'2'
})
if
__name__
==
'__main__'
:
if
__name__
==
'__main__'
:
unittest
.
main
()
unittest
.
main
()
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