(name: string)
| 1282 | if (tag[1] === 'Route' && i < source.length) { |
| 1283 | const pathText = attrs.get('path'); |
| 1284 | const expression = (name: string) => attrs.get(name)?.replace(/^\{([\s\S]*)\}$/, '$1'); |
| 1285 | // `path="team"`, or the same string in braces: `path={"team"}`. |
| 1286 | const path = literal(pathText ?? '') ?? literal(expression('path') ?? ''); |
| 1287 | routeTags.push({ at, spreads, path: expression('path')?.trim() }); |