A('something', **{'_data-something': 100}) Anthony
On Sunday, April 8, 2012 6:54:55 PM UTC-4, Yarin wrote: > > The HTML5 spec for custom attributes uses attribute names that start with > 'data-'. However, web2py's HTML helpers throw an error whenever you try to > use a hyphen in an attribute name: > > datalink = A('something', _data-something='100') > > throws: > > 'SyntaxError: keyword can't be an expression'. > > Is this an issue that needs to be addressed? >