embed a template