Parse the template during initialization