Skip to content

Commit

Permalink
playing friendly with data-bind attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
shon committed Apr 13, 2012
1 parent 8ca0b7f commit 0e9712f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sphc/__init__.py
Expand Up @@ -16,6 +16,8 @@ def __call__(self, content='', nv_attrs=(), escape=ESCAPE_DEFAULT, **attrs):
_content = (cgi.escape(content) if escape else content) if content else ''
self._content = _content
self.attributes = attrs
if 'data_bind' in self.attributes:
self.attributes['data-bind'] = self.attributes.pop('data_bind')
self.nv_attributes = list(nv_attrs)
return self
def __init__(self, name):
Expand Down

0 comments on commit 0e9712f

Please sign in to comment.