ActiveWeb view - <@compress single_line=true>

219 views Asked by At

I wonder what is the following declaration/macro used for (I'm rendering a custom JSON response):

<@compress single_line=true>
{
  attribute_1: ${my_model.attribute_1},
  attribute_2: ${my_model.attribute_2},
  attribute_3: ${my_model.attribute_3},
}
</@compress>

Thank you.

1

There are 1 answers

0
ipolevoy On

This is a feature of the FreeMarker, please see https://freemarker.apache.org/docs/dgui_misc_whitespace.html