Pull template-specific variables from one template into another