google-nomulus/java/google/registry
lukes 7aa070b0a5 Change all foreach loops in Soy templates to use the for loop syntax
Soy supports 2 kinds of loops:
foreach- for iterating over items in a collection  e.g. {foreach $item in $list}...{/foreach}
for - for indexed iteration  e.g. {for $i in range(0, 10)}...{/for}

The reason Soy has 2 different loops is an accident of history, Soy didn’t use to have a proper grammar for expressions and so the alternate ‘for...range’ syntax was added to make it possible to write indexed loops.  As the grammar has improved having the two syntaxes is no longer necessary and so we are eliminating one of them.

As of 4a7373333f or mvn release "2018-01-03" the two forms are actually aliases for one another, so the only difference is the keyword (‘for’ vs ‘foreach’), and while the foreach loop is more popular the ‘for’ terminology is more standard so we are switching everything to that.

LSC: []
Tested:
    TAP sample presubmit queue
    []

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180942763
2018-01-19 14:14:31 -05:00
..
backup Replace Stream.concat with Streams.concat 2017-12-27 11:35:47 -05:00
batch Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
beam Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
bigquery Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
billing Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
braintree Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
builddefs Rename set to depset in .bzl and BUILD files 2017-08-29 16:53:21 -04:00
config Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
cron Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
dns Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
eclipse Switch from Guava Optionals to Java 8 Optionals 2017-10-24 16:53:47 -04:00
env Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
export Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
flows Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
gcs Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
groups Clean up some code quality issues 2017-12-01 22:14:06 -05:00
idn Run buildifier on codebase to format BUILD files 2016-11-28 18:15:21 -05:00
keyring Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
loadtest Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
mapreduce Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
model Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
module Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
monitoring/whitebox Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
pricing Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
proxy Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
rdap Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
rde Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
reporting Add publish functionality to billing pipeline 2018-01-04 17:17:59 -05:00
request Replace com.google.common.base.Function with java.util.function.Function 2017-12-27 11:08:55 -05:00
security Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
storage/drive Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
tldconfig/idn Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
tmch Move backported JUnit file to third_party (part 2) 2017-12-02 11:37:46 -05:00
tools Change all foreach loops in Soy templates to use the for loop syntax 2018-01-19 14:14:31 -05:00
ui Change all foreach loops in Soy templates to use the for loop syntax 2018-01-19 14:14:31 -05:00
util Replace FluentIterable with streams 2017-12-27 11:40:50 -05:00
whois Move metrics dependencies to artifacts under Maven groupId com.google.monitoring-client 2018-01-04 17:12:35 -05:00
xjc Clean up some code quality issues 2017-12-01 22:14:06 -05:00
xml Remove unnecessary generic type arguments 2017-11-21 18:17:31 -05:00
BUILD Add nocron ear and deployer rules for the crash environment 2017-10-04 16:16:45 -04:00
repositories.bzl Change all foreach loops in Soy templates to use the for loop syntax 2018-01-19 14:14:31 -05:00