# RouteTemplateLinker

**Kind:** Class

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/route-template-linker.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/route-template-linker.ts#L31)

Route-Template Linker Service

## Methods

| Method | Signature | Returns |
|---|---|---|
| `linkRoutes` | `linkRoutes(files: Map<string, string>, framework: FrameworkType)` | `RouteMappingResult` |

## Where it refuses work

- `RouteTemplateLinker` stops the work with an early return when `files.size === 0`.
- `RouteTemplateLinker` stops the work with an early return when `!altMatch`.
- `RouteTemplateLinker` stops the work with an early return when `filePath.toLowerCase().includes(pattern.toLowerCase())`.
- `RouteTemplateLinker` stops the work with an early return when `framework === 'angular'`.
- `RouteTemplateLinker` stops the work with an early return when `filePath.endsWith(templateFileName) || filePath === templatePath`.
- `RouteTemplateLinker` stops the work with an early return when `framework === 'angular' && this.isAngularRoutingFile(filePath, content)`.
