HamlPy icon indicating copy to clipboard operation
HamlPy copied to clipboard

Add same attribute tuple support for `for` attribute (for matching ids)

Open kevinastone opened this issue 12 years ago • 0 comments

Can you allow the same tuple for a for attribute as supported by id (joined as '_') so we can do something like this:

%label{'for': ('id', '{{ control }}')}
    = control|title
%input{'id': ('id', '{{ control }}'), 'value': 'Value'}

This would be especially useful when having lists of controls so we could vary the prefix.

kevinastone avatar Jan 09 '13 04:01 kevinastone