gui.callbacks.evaluate_templates(d)
If a dictionary contains $ templates in its values, replace them with the variable