Expose templateVariables and templateId publicly

Needed when implementing a preview