Parametr s více hodnotami

Fragmenty kódu

Vstup
{while _request.params
 if _.key == "category" let category := _.value /if
/while}

<select name="category" multiple="multiple">
{while asMap(
  "news", "Aktuality",
  "products", "Produkty",
  "all", "Vše"
)}
 <option value="{_.key}"
  {if in(_.key, category)} selected="selected"{/if}>
   {_.value}
 </option>
{/while}
</select>