|
Les types de fichiers classiques ne pourront plus être utilisés à partir de janvier 2021. Vous pouvez transférer vos fichiers classiques ou télécharger un PDF. En savoir plus

Handlebar Output

Répondu
0

Commentaires

3 commentaires

  • 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

Vous devez vous connecter pour laisser un commentaire.