Ah, I think I see now. So essentially you have a bunch of variables that you want to use in multiple places. Are these variables final, or do you intend to update the values?
If the values will not be changed, you can use the freemarker "include" directive to insert the component containing your variables into other components.
For example, if you had a component containing all these variables named "global-vars", you could add this to all the components that you wanted to use these variables:
<#include "global-vars" />
Keep in mind that this approach will only work if you don't plan to update the values of the variables in "global-vars". If you've included "global-vars" in components A and B, updating the value of one of the variables in A will have no impact on B. Each component essentially gets their own copy of the original code from "global-vars".
If you want to be able to update a variable in component A and have it impact component B, that's going to be more tricky and I'd like to understand more about what you're trying to accomplish.