Dynamic routes are used to create flexible and reusable paths in your application. They allow you to define routes that can handle various parameters and values, making it easier to manage and navigate through different sections of your application. This approach is commonly used in many frameworks to enhance the scalability and maintainability of web applications.

{
  "context": "{‎{let routes = c‎wrapReference.globals.const.documentation['getting started'].concat(c‎wrapReference.globals.const.documentation['advanced concepts']); routes = routes.map((x)=>`documentation/${x}/`);c‎wrapContext.set('documentRoutes',routes);return '';}‎}",
  "routes": "{‎{‎{ return { \"routes\": c‎wrapContext.get('documentRoutes') }; }‎}‎}",
  "element": "c‎wrap-template",
  "text": "c‎wrapTemplate[documentation]",
  "pass‎overRef": "documentation",
  "pass‎over": [
    {
      "element": "c‎wrap-template",
      "text": "c‎wrapTemplate[{‎{return c‎wrapRoute}‎}]"
    }
  ]
}