0

freemarkerを使用してテーブルを生成しようとしています。

<table class="timeline">
        <tr>
            <#list children as child >
                <td class="timeline-item"><a href="${child.url}">${child.title}</a></td>
                <td><img class="sitelink_arrow" src="images/arrow.png"/></td>
            </#list>
        </tr>
    </table>

これはエラーを生成します:

次のいずれかを期待していました:... ... ... ... ... ... ... ... <_INCLUDE> ...
... ... ........。 ... ... ... ... ... ... ... ... ... ... ... ... ... ...
.......。 。......... ... ... ... ... ... ... ... ... "$ {" ...
"#{"..。

このリストをテーブルの外に置くと、問題なく機能します。何か案は ?

4

1 に答える 1

1

コードは次のようになります。

コードも投稿したほうがいいです。そして完全なエラーも。

[#ftl]
<table id="timelineTable" class="timeline" align="left" width="100%">
    [#if children?? && children?size > 0] 
    [#list children as child]
    <tr>
        <td class="timeline-item">
            <a href="${child.url}">${child.title}</a>
        </td>
        <td>
            <img class="sitelink_arrow" src="images/arrow.png"/>
        </td>
    </tr>
    [/#list]
[#else] 
    No Details Available
[/#if]      

于 2012-09-01T06:36:44.077 に答える