pass template to plugins