Save the template in the transformer class