Using configuration parameters in mail template

Hello, I have some number of custom configuration parameters which are using in many places such as scripts, dynamic roles conditions, etc..

So question is how to get value of configuration parameter in mail template?

An idea for now is using script in email template which returns the value of configuration parameter.

Thanks.