less: begin(@n) not working?

Post here questions and problems related to oXygen frameworks/document types.
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

less: begin(@n) not working?

Post by Patrik »

Hi,

I wanted to define a less variable for the index I'm using within a number of :begin(n) and :after(n):

Code: Select all

@index: 5;
*MyElement:before(@index) {
...
}
But I get the ParseError "Unrecognised Input".

Is this an intentional limitation?

Thanks and regards,

Patrik
Patrik
Posts: 280
Joined: Thu Nov 28, 2013 9:32 am
Location: Hamburg/Germany
Contact:

Re: less: begin(@n) not working?

Post by Patrik »

Sorry, should have looked into the spec first...

Using the correct syntax (with curly braces) it works fine:

Code: Select all

@index: 5;
*MyElement:before(@{index}) {
...
}
Patrik
Post Reply