2017-06-05 14:18:02 +02:00
|
|
|
{
|
2017-06-24 03:34:41 +02:00
|
|
|
{{- $lenGames := sub (len .Data.Pages) 1 }}
|
|
|
|
{{- range $index, $element := .Data.Pages }}
|
|
|
|
{{- $game := . }}
|
|
|
|
{{- $gameIndex := $index }}
|
|
|
|
{{- $lenRegions := sub (len .Params.releases) 1 }}
|
|
|
|
{{- range $regionIndex, $element := .Params.releases }}
|
|
|
|
"{{ $element.title }}": { "region": "{{ .region }}", "gameID": "{{ $game.File.BaseFileName }}", "compatibility": "{{ $game.Params.compatibility }}" }{{- if and (eq $gameIndex $lenGames) (eq $regionIndex $lenRegions) }}{{ else }},{{ end }}
|
2017-06-05 14:18:02 +02:00
|
|
|
{{- end }}
|
2017-06-24 03:34:41 +02:00
|
|
|
{{- end }}
|
2017-06-05 14:18:02 +02:00
|
|
|
}
|