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
c6f78bfd
Commit
c6f78bfd
authored
Jan 27, 2011
by
Carl Whittaker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removing cruft.
parent
16ce94a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
pystache/template.py
+0
-18
No files found.
pystache/template.py
View file @
c6f78bfd
...
@@ -19,22 +19,6 @@ def modifier(symbol):
...
@@ -19,22 +19,6 @@ def modifier(symbol):
return
func
return
func
return
set_modifier
return
set_modifier
# def get_or_attr(context_list, name, default=None):
# if not context_list:
# return default
#
# for obj in context_list:
# try:
# return obj[name]
# except KeyError:
# pass
# except:
# try:
# return getattr(obj, name)
# except AttributeError:
# pass
# return default
class
Template
(
object
):
class
Template
(
object
):
tag_re
=
None
tag_re
=
None
...
@@ -143,9 +127,7 @@ class Template(object):
...
@@ -143,9 +127,7 @@ class Template(object):
def
_render_partial
(
self
,
template_name
):
def
_render_partial
(
self
,
template_name
):
from
pystache
import
Loader
from
pystache
import
Loader
markup
=
Loader
()
.
load_template
(
template_name
,
self
.
view
.
template_path
,
encoding
=
self
.
view
.
template_encoding
)
markup
=
Loader
()
.
load_template
(
template_name
,
self
.
view
.
template_path
,
encoding
=
self
.
view
.
template_encoding
)
template
=
Template
(
markup
,
self
.
view
)
template
=
Template
(
markup
,
self
.
view
)
# template.context_list = self.context_list
return
template
.
render
()
return
template
.
render
()
@modifier
(
'='
)
@modifier
(
'='
)
...
...
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