A route map is intended for the definition of urls within the application.
This PR introduces utilities for creating a route map, getting its full route urls or just path segments and interpolating variables into route parameters.
The ppwRouteMapRoute and ppwRouteMapSegment directives allow for using the RouteMapRoute instances within the templates.
When used correctly, this allows the developer to have a single point in code for updating route urls without having to globally search for urls throughout the codebase when refactoring.
A route map is intended for the definition of urls within the application.
This PR introduces utilities for creating a route map, getting its full route urls or just path segments and interpolating variables into route parameters.
The
ppwRouteMapRoute
andppwRouteMapSegment
directives allow for using theRouteMapRoute
instances within the templates.When used correctly, this allows the developer to have a single point in code for updating route urls without having to globally search for urls throughout the codebase when refactoring.