hooked in hmal engine to render template