Skip to Content
0
Former Member
Jul 17, 2014 at 04:08 PM

How to create global macros for velocity email templates.

876 Views

Good Day,

I'm trying to create a global velocity macro for usage in email templates in hybris5. I have created an VM_global_libraries.vm, where i declare my velocity macros in, however when i try to use in my emails it doesn't seem to locate it.

Macro Definition in VM_global_libraries

#macro(utc_date $name) Hello, $name #end

Usage in email templates <td> #utc_date("jeffery") </td>

Result #utc_date("jeffery")