[template] Allow kwargs to be passed to nav templates