externalised templates with export