Merge template data into global data and preserving existing values