From 0e9712f6639d6e2d6ae228fb9770f6c5b2d56e34 Mon Sep 17 00:00:00 2001 From: Shekhar Date: Sat, 14 Apr 2012 01:34:17 +0530 Subject: [PATCH] playing friendly with data-bind attributes --- sphc/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sphc/__init__.py b/sphc/__init__.py index 58fe691..07e3411 100644 --- a/sphc/__init__.py +++ b/sphc/__init__.py @@ -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):