Complete the template code

Report a typo

Here is an HTML template that generates a list of comments when rendered, or a No comments message if the list is empty.

<#if comments?size == 0>
    <p>(1)__________</p>
<#else>
    <#list comments as comment>
        <div>
            <a href="(2)__________">${comment.user.name}</a>
            <p>(3)__________</p>
            <p>${comment.time}</p>
        </div>
    (4)__________
</#if>

Match each number with the required code to complete the template.

Match the items from left and right columns
1
2
3
4
No comments
${comment.text}
${comment.user.profileUrl}
</#list>
___

Create a free account to access the full topic