MountPath derives the mount path from the canonical URL of the config.
()
| 56 | |
| 57 | // MountPath derives the mount path from the canonical URL of the config. |
| 58 | func (t TemplateData) MountPath() string { |
| 59 | if url, err := url.Parse(t.CanonicalURL); err == nil { |
| 60 | if url.Path == "" { |
| 61 | return "/" |
| 62 | } |
| 63 | return url.Path |
| 64 | } |
| 65 | return "" |
| 66 | } |
| 67 | |
| 68 | const appHTML = ` |
| 69 | {{- $assetsBaseURL := .AssetsBaseURL -}} |
no test coverage detected