|
Klassiska filtyper är inte längre tillgängliga för användning från och med januari 2021. Du kan överföra dina klassiska filer eller ladda ner en PDF. Läs mer

Handlebar Output

Besvarat
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

Du måste logga in om du vill lämna en kommentar.