Message template code, based on Message Templates.
Extract a map of items from a template and supplied values for the holes.