Skip to content

Commit

Permalink
Removing cruft.
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl Whittaker committed Jan 27, 2011
1 parent 16ce94a commit c6f78bf
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions pystache/template.py
Expand Up @@ -19,22 +19,6 @@ def set_modifier(func):
return func
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):

tag_re = None
Expand Down Expand Up @@ -143,9 +127,7 @@ def _render_comment(self, tag_name):
def _render_partial(self, template_name):
from pystache import Loader
markup = Loader().load_template(template_name, self.view.template_path, encoding=self.view.template_encoding)

template = Template(markup, self.view)
# template.context_list = self.context_list
return template.render()

@modifier('=')
Expand Down

0 comments on commit c6f78bf

Please sign in to comment.