mirror of https://github.com/onweru/compose.git

Ray
11.16.2023 0f1fb40e912e24c8c23e3cf0c92c198daf624cd4
1
2
3
4
5
6
7
8
9
10
{{ $videoid := .Get "videoid" }}
{{ if not $videoid }}
  {{ $videoid := .Get 0 }}
  {{ if not $videoid }}
    {{ errorf "'videoid' parameter required!" }}
  {{ end }}
{{ end }}
 
{{ $params := .Get "params" }} <!-- not required. List of params here: https://developers.google.com/youtube/player_parameters -->
<lite-youtube videoid="{{ $videoid }}"{{ if $params }} params="{{$params}}"{{ end }}></lite-youtube>