diff --git a/templates.go b/templates.go index 7a66917..91d54da 100644 --- a/templates.go +++ b/templates.go @@ -50,6 +50,8 @@ var files = map[string]string{ {{end}} +{{end}} +{{define "playlist"}}
    {{range $i, $el := .}} @@ -61,6 +63,7 @@ var files = map[string]string{ {{define "full-player"}} {{template "player" .}} + {{template "playlist" .}} {{template "playlist-js"}} {{end}} diff --git a/templates/parts.tmpl b/templates/parts.tmpl index d5a381d..36441f8 100644 --- a/templates/parts.tmpl +++ b/templates/parts.tmpl @@ -4,6 +4,8 @@ {{end}} +{{end}} +{{define "playlist"}}
      {{range $i, $el := .}} @@ -15,6 +17,7 @@ {{define "full-player"}} {{template "player" .}} + {{template "playlist" .}} {{template "playlist-js"}} {{end}}