Code block in LESS variable

You can write not only a value into a variable, but also a whole block of code, like this:

styles.less@test: {
  width: 100px;
  height: 100px;
}

To output a block of code written in a variable, you need to write the name of the variable and parentheses, like this:

styles.lessdiv {
  @test();
}

As a result, after compilation we will get the following code:

styles.cssdiv {
  width: 100px;
  height: 100px;
}