strip '/' from paths in template-render handlers