mirror of
https://github.com/google/nomulus
synced 2026-02-06 13:01:11 +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:
@@ -28,14 +28,14 @@
|
||||
<host:create xmlns:host="urn:ietf:params:xml:ns:host-1.0">
|
||||
<host:name>{$hostname}</host:name>
|
||||
{if $ipv4addresses}
|
||||
{for $ipv4 in $ipv4addresses}
|
||||
{foreach $ipv4 in $ipv4addresses}
|
||||
<host:addr ip="v4">{$ipv4}</host:addr>
|
||||
{/for}
|
||||
{/foreach}
|
||||
{/if}
|
||||
{if $ipv6addresses}
|
||||
{for $ipv6 in $ipv6addresses}
|
||||
{foreach $ipv6 in $ipv6addresses}
|
||||
<host:addr ip="v6">{$ipv6}</host:addr>
|
||||
{/for}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</host:create>
|
||||
</create>
|
||||
|
||||
Reference in New Issue
Block a user