freemarker-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ingo Mahnke" <ingo.mah...@quvion.org>
Subject Question about String Concatenation [FM2]
Date Mon, 06 Mar 2017 15:36:12 GMT
Hallo,
one question.

This works:
<#list imagesLayout?split(";") as x>
            <table border="0" cellspacing="0" cellpadding="0" style="width:100%">
                <tr>
                    <#list x?split("-") as y>
                        <#assign s = "image"+y>
                        <td class="qvImageGalleryImage"><@img width="100%" height="185"
style="width:100%;" name="${s}"/></td>
                    </#list>
                </tr>
            </table>
        </#list>



Why this will not work:
<#list imagesLayout?split(";") as x>
            <table border="0" cellspacing="0" cellpadding="0" style="width:100%">
                <tr>
                    <#list x?split("-") as y>
                          <td class="qvImageGalleryImage"><@img width="100%" height="185"
style="width:100%;" name="${"image"+y}"/></td>
                    </#list>
                </tr>
            </table>
        </#list>


Why I have to use the "assign"?



Thank you
Ingo

Mime
View raw message