add new event for passing raw template engine to plugins