|
Klassiske filtyper er ikke lenger tilgjengelige for bruk fra og med januar 2021. Du kan overføre klassiske filer eller laste ned en PDF-fil. Finn ut mer

Handlebar Output

Besvart
0

Kommentarer

3 kommentarer

  • 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

Logg på for å legge inn en kommentar.