Loading freemarker templates from database into process

Ya in practice we load all our scripts as a external script file.
something like this:

In this context, we opted to not use java deployments, and so most things are done as a script execution.