Note, this is explained near the end of this section in the book:
http://web2py.com/books/default/chapter/29/5#HTML-helpers
On Sunday, April 8, 2012 8:28:59 PM UTC-4, Anthony wrote:
>
> 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?
>>
>