Pārlūkot izejas kodu

Give a name to the video template

This is useful for debugging.
Lucas Stadler 9 gadi atpakaļ
vecāks
revīzija
712df77694
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      go/blog/blog.go

+ 1 - 1
go/blog/blog.go

@ -417,7 +417,7 @@ var textTmpl = template.Must(baseTmpl.New("text").
417 417
</article>
418 418
`))
419 419
420
var videoTmpl = template.Must(baseTmpl.Parse(`
420
var videoTmpl = template.Must(baseTmpl.New("video").Parse(`
421 421
<article id="{{ .Id }}" class="video">
422 422
	{{- template "title" . }}
423 423
	<iframe width="560" height="315" src="https://www.youtube.com/embed/{{ .URL }}" frameborder="0" allowfullscreen></iframe>