Преглед на файлове

Give a name to the video template

This is useful for debugging.
Lucas Stadler преди 9 години
родител
ревизия
712df77694
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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>