Klasyczne typy plików nie są już dostępne od stycznia 2021 r. Możesz przenieść swoje klasyczne pliki lub pobrać plik PDF. Dowiedz się więcej

Handlebar Output

Udzielono odpowiedzi
0

Komentarze

Komentarze: 3

  • Chad Weber

    Here's the solution, for anyone else wanting to do something similar.

    id,code
    {{#data}}
    {{#codes}}
    {{id}},{{.}}
    {{/codes}}
    {{/data}}
    0
  • Jeff Hickey

    Hi Chad Weber, if that template works for you, that's fantastic. If not, I'd like to offer the following as an alternative, which should produce the expected output:

    id,code
    {{#each data}}
    {{#each codes}}
    {{../id}},{{this}}
    {{/each}}
    {{/each}}

    I hope this helps!

    Edit: I've set up an example demo here to view the template in action.

    0
  • Chad Weber

    Thank Jeff

    0

Zaloguj się, aby dodać komentarz.