From de090b9b8f97fd7d598b9c374ccc08dbda4c1460 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Sat, 29 Feb 2020 11:18:38 -0500 Subject: [PATCH] Split player template from playlist --- templates.go | 3 +++ templates/parts.tmpl | 3 +++ 2 files changed, 6 insertions(+) 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}}