how to add items to email templates (freemarker)
# ask-stanley-ai
n
how to add items to email templates (freemarker)
c
AI generated answer (using internal Slack threads):
To add items to email templates using Freemarker, you can use the following syntax:
Copy code
html
<#list transaction.item as item>
<tbody>
    <tr>
        <td style="width: 124px;"><span style="font-size:12px;"><span style="font-family:Verdana,Geneva,sans-serif;">${item.quantity}</span></span></td>
        <td style="width: 846px;"><span style="font-size:12px;"><span style="font-family:Verdana,Geneva,sans-serif;">${item.description}</span></span></td>
    </tr>
</tbody>
</#list>
This code will loop through each item in the transaction and display its quantity and description in the email body. You can modify the HTML and Freemarker code to suit your needs. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834266603
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.8272475
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.826115251
Please provide your feedback on this answer.