LESS class name string interpolation not working
问题 I am currently translating my grid into LESS, but I can't seem to figure out string interpolation. Here's helper class that is supposed to generate all my columns: .createColumns (@colNumber+1) {} .createColumns (@index) when (@index < @colNumber) { (~".col@{index}") { width: @baseWidth * @index; } .createColumns (@index + 1); } .createColumns (01); Problem is, I get error that says something is wrong with this part (~".col@{index}") . Here's the error message: ParseError: Unrecognised input