Browse Source

Corrected mistake in go block for replies

projects
Domeniko Gentner 2 years ago
parent
commit
6a402ee64f
  1. 10
      README.md

10
README.md

@ -101,12 +101,12 @@ Within that template the following structure is needed: @@ -101,12 +101,12 @@ Within that template the following structure is needed:
{{ if (fileExists $location ) }}
{{ $dataJ := getJSON $location }}
{{ range $dataJ.comments }}
{# HTML and template codes here #}
{{ end }}
{# This is to display replies to this comment, you can use them same variables #}
{{ range where $dataJ.replies "replied_to" .comment_id }}
{# HTML and template codes here #}
{# This is to display replies to this comment, you can use them same variables #}
{{ range where $dataJ.replies "replied_to" .comment_id }}
{# HTML and template codes here for replies #}
{{end}}
{{end}}
{{ end }}
{{ end }}
```

Loading…
Cancel
Save