Search in the Documentation:

Macros

Macros have been introduced in Jahia 6.5 to allow editors to use variables within their page content knowing that those variables will be dynamically replaced by the correct value during the rendering of the content.

The syntax to call a macro is the following:

##macro-name##

In the rendering chain, macros are executed last. When Jahia encounters a macro it will search in the folder named macro of the current module and in the Jahia global macros module (Jahia/macros/WEB-INF/macros) with a simple rule: the filename of the macro defines its name.

Here is an example of a file name for a macro is named manufacturer

<module>WEB-INF/macros/manufacturer.groovy