Closed ameliemaia closed 11 years ago
Just wrap it in interpolation — {"%s" % $index}
would work fine. BTW, it's not nib, but Stylus and you should post such issues to http://stackoverflow.com, not in GitHub :)
My bad. I''ll move the discussion elsewhere : )
Hey,
I can't seem to sprintf variables in data attribute's in Stylus. See example:
The above renders:
I imagine it's got something to do with the attribute being inside brackets
[ ]
. Is this a bug or am I missing something?Cheers,