Skip to content

Commit

Permalink
Merge pull request #7 from loic-roux-404/patch-1
Browse files Browse the repository at this point in the history
Use with to avoid error in parse
  • Loading branch information
regisphilibert committed Feb 15, 2021
2 parents 9731524 + 292e804 commit 27a9135
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions partials/private/parse.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,14 @@
{{ $slice := slice }}
{{/* We range on its item */}}
{{ range . }}
{{/* As it is a slice, its entries might be "imports" */}}
{{ with partialCached "tnd-netlifycms/private/import" . . }}
{{/* We recursively use self partial to deep parse the result */}}
{{ with partialCached "tnd-netlifycms/private/parse" . . }}
{{/* We add the produced data as an entry to the newly processed slice */}}
{{ $slice = $slice | append . }}
{{ with . }}
{{/* As it is a slice, its entries might be "imports" */}}
{{ with partialCached "tnd-netlifycms/private/import" . . }}
{{/* We recursively use self partial to deep parse the result */}}
{{ with partialCached "tnd-netlifycms/private/parse" . . }}
{{/* We add the produced data as an entry to the newly processed slice */}}
{{ $slice = $slice | append . }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
Expand Down Expand Up @@ -69,4 +71,4 @@
{{ $return = . }}
{{ end }}

{{ return $return }}
{{ return $return }}

0 comments on commit 27a9135

Please sign in to comment.