Function toRouteUrl

Converts a template string and params object into a route URL.

  • Parameters

    • template: string

      The template string representing the route URL.

    • params: object

      The parameters object to be filled into the template.

    Returns string

    The generated route URL.