update template (RTD-like)