update router rules, support html template