google / bamboo-soy

An intellij plugin supporting Closure Template language (Soy)
Apache License 2.0
48 stars 27 forks source link

Support for list comprehension expressions #195

Closed dikmax closed 4 years ago

dikmax commented 4 years ago

Examples.

with filter: [$a + 1 for $a in $myList if $a >= 3]\ without filter: [$a + 1 for $a in $myList]

More complex example:

{let $featureValue: [record(id: $value.id, label: $value.label)
      for $value in $object.labelList if isNonnull($value.label)] /}
crdev commented 4 years ago

Fixed in #192