replace static with url_for static in templates