mirror of
https://github.com/google/nomulus
synced 2026-08-20 22:26:12 +00:00
Roll back changelist 180942763
*** Reason for rollback ***
Breaks the FOSS build.
We'll reincorporate this change once Closure Rules is properly updated to accommodate it.
*** Original change description ***
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 gramma...
***
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180961695
This commit is contained in:
@@ -39,15 +39,15 @@
|
||||
<domain:period unit="y">{$period}</domain:period>
|
||||
{if isNonnull($nameservers) and length($nameservers) > 0}
|
||||
<domain:ns>
|
||||
{for $nameserver in $nameservers}
|
||||
{foreach $nameserver in $nameservers}
|
||||
<domain:hostObj>{$nameserver}</domain:hostObj>
|
||||
{/for}
|
||||
{/foreach}
|
||||
</domain:ns>
|
||||
{/if}
|
||||
<domain:registrant>{$registrant}</domain:registrant>
|
||||
{for $type in keys($contacts)}
|
||||
{foreach $type in keys($contacts)}
|
||||
<domain:contact type="{$type}">{$contacts[$type]}</domain:contact>
|
||||
{/for}
|
||||
{/foreach}
|
||||
<domain:authInfo>
|
||||
<domain:pw>{$authInfo}</domain:pw>
|
||||
</domain:authInfo>
|
||||
@@ -70,14 +70,14 @@
|
||||
</allocate:create>
|
||||
{if isNonnull($dsRecords) and length($dsRecords) > 0}
|
||||
<secDNS:create xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1">
|
||||
{for $dsRecord in $dsRecords}
|
||||
{foreach $dsRecord in $dsRecords}
|
||||
<secDNS:dsData>
|
||||
<secDNS:keyTag>{$dsRecord['keyTag']}</secDNS:keyTag>
|
||||
<secDNS:alg>{$dsRecord['algorithm']}</secDNS:alg>
|
||||
<secDNS:digestType>{$dsRecord['digestType']}</secDNS:digestType>
|
||||
<secDNS:digest>{$dsRecord['digest']}</secDNS:digest>
|
||||
</secDNS:dsData>
|
||||
{/for}
|
||||
{/foreach}
|
||||
</secDNS:create>
|
||||
{/if}
|
||||
</extension>
|
||||
|
||||
Reference in New Issue
Block a user