| 1 | <h2>Full example</h2> |
| 2 | <pre><code><html> |
| 3 | <head> |
| 4 | <title>Welcome!</title> |
| 5 | </head> |
| 6 | <body> |
| 7 | <h1> |
| 8 | Welcome ${user}<#if user == "Big Joe">, our beloved leader</#if>! |
| 9 | </h1> |
| 10 | <p>Our latest product: |
| 11 | <a href="${latestProduct.url}">${latestProduct.name}</a>! |
| 12 | <p>See what our happy customers have to say!</p> |
| 13 | <ul> |
| 14 | <#list userStories as story> |
| 15 | <li> |
| 16 | <p>${story.text?esc} - by <span>${story.user.name}</span> |
| 17 | <li> |
| 18 | </#list> |
| 19 | </ul> |
| 20 | </body> |
| 21 | </html></code></pre> |