16 lines
399 B
HTML
16 lines
399 B
HTML
![]() |
{{/* Use to get resources path with vendor */}}
|
||
|
|
||
|
{{ $fmt := "%s/%s@%s/%s" }}
|
||
|
|
||
|
{{ $npm := .res.name }}
|
||
|
{{ with .res.alias }}
|
||
|
{{ $npm = . }}
|
||
|
{{ end }}
|
||
|
{{ $file := .res.file }}
|
||
|
{{ if eq .vendor "cdnjs" }}
|
||
|
{{ $file = replaceRE `(dist|lib|source\/js)\/` "" .res.file }}
|
||
|
{{ $fmt = "%s/%s/%s/%s" }}
|
||
|
{{ end }}
|
||
|
{{ $pluginRes := printf $fmt .router $npm .res.version $file }}
|
||
|
|
||
|
{{ return $pluginRes }}
|