Skip to content

RouteTemplateLinker

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/services/route-template-linker.ts

Route-Template Linker Service

Methods

MethodSignatureReturns
linkRouteslinkRoutes(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).

Was this page helpful?

Download as PDF