// Code generated by "inline -o templates.go -p cdr mixtape.tmpl templates/parts.tmpl" -- DO NOT EDIT -- package cdr import ( "fmt" "io/ioutil" ) func ReadAsset(file string, useLocal bool) ([]byte, error) { if useLocal { return ioutil.ReadFile(file) } if f, ok := files[file]; ok { return []byte(f), nil } return nil, fmt.Errorf("file doesn't exist.") } var files = map[string]string{ "mixtape.tmpl": `{{define "mixtape"}} Mixtape {{template "full-player" .Tracks}} {{end}}`, "templates/parts.tmpl": `{{define "player"}} {{with $x := index . 0}} {{end}} {{end}} {{define "playlist"}}
    {{range $i, $el := .}} {{$el.Artist}} - {{$el.Title}} {{end}}
{{end}} {{define "full-player"}} {{template "player" .}} {{template "playlist" .}} {{template "playlist-js"}} {{end}} {{define "playlist-js"}} {{end}}`, }