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
c215b07b
Commit
c215b07b
authored
Nov 12, 2009
by
Chris Wanstrath
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
partial extension test
parent
40b904a3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
examples/inner_partial.txt
+1
-0
examples/template_partial.txt
+4
-0
tests/test_examples.py
+9
-0
No files found.
examples/inner_partial.txt
0 → 100644
View file @
c215b07b
## Again, {{title}}! ##
examples/template_partial.txt
0 → 100644
View file @
c215b07b
{{title}}
{{title_bars}}
{{>inner_partial}}
tests/test_examples.py
View file @
c215b07b
...
...
@@ -26,3 +26,12 @@ class TestView(unittest.TestCase):
def
test_template_partial
(
self
):
self
.
assertEquals
(
TemplatePartial
()
.
render
(),
"""<h1>Welcome</h1>
Again, Welcome!"""
)
def
test_template_partial_extension
(
self
):
view
=
TemplatePartial
()
view
.
template_extension
=
'txt'
self
.
assertEquals
(
view
.
render
(),
"""Welcome
-------
Again, Welcome!
"""
)
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