Sorry, I forgot the semicolumn in the example I posted. Anyway, I got
the same result, it still produces:
<div data-bind="attr: { " data-something': somevalue }'></div>
(If I copy and paste directly from Chrome, I even got:
<div data-bind="attr: { " data-something':="" somevalue="" }'=""></div>,
but I suspect this to be a Chrome issue.)
FYI: I am doing this from a Ruby (1.9.3) on Rail (3.2.2) project, using
haml_assets (0.1.0).
Kind regards,
Bert Bruynooghe.
On Mon, Mar 26, 2012 at 9:36 AM, bert bruynooghe
<[email protected]> wrote:
> On 03/25/2012 07:11 PM, kadoudal wrote:
>>
>> did you try :
>>
>> %div{:'data-bind' => "attr: { 'data-something': someValue }"}
>>
>> On Mar 23, 12:53 pm, bert bruynooghe<[email protected]>
>> wrote:
>>>
>>> How do I produce HAML for this:
>>> <div data-bind="attr: { 'data-something': someValue }">...</div>
>>>
>>> Next line replaces all quotes by double quotes, rendering the result
>>> unusable:
>>> %div{'data-bind' => "attr{'data-something' : someValue}"}
>>>
>>> Kind regards,
>>> Bert Bruynooghe.
>
>
> Soory, I forgot the semicolumn in the example I posted. Anyway, I got the
> same result, it still produces:
>
> <div data-bind="attr: { " data-something': somevalue }'></div>
>
> (If I copy and paste directly from Chrome, I even got:
> <div data-bind="attr: { " data-something':="" somevalue="" }'=""></div>,
> but I suspect this to be a Chrome issue.)
>
> FYI: I am doing this from a Ruby (1.9.3) on Rail (3.2.2) project, using
> haml_assets (0.1.0).
>
> Kind regards,
> Bert Bruynooghe.
>
--
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/haml?hl=en.