kaola-fed / freemarker

Freemarker integration for NodeJS
MIT License
26 stars 17 forks source link

Create custom function "getString" #15

Closed zecka closed 3 years ago

zecka commented 3 years ago

I try to render an Oracle Commerce Cloud email template who contain custom function.

Here is an example of Oracle Template:

${getString("PASSWORD_RESET_SALUTATION", data.firstName)}
<#if data.login?has_content>
   ${getString("ACCOUNT_EXIST_LINE")}&nbsp; &nbsp; <b>${data.login}</b><br>
</#if>

Any way to create the "getString" function ?

zecka commented 3 years ago

Sorry, in fact everything is shown in the example folder