separate common ejs snippet