|
Os tipos de arquivos clássicos não estarão mais disponíveis para uso a partir de janeiro de 2021. Você pode fazer a transição de seus arquivos clássicos ou baixar um PDF. Saber mais

Handlebars - Element Reference

Respondida
0

Comentários

2 comentários

  • Jeff Hickey

    Hi Chad.

    You can use "../" notation to look back one level. Based on the JSON you provided, the following template produces the output you're looking for. See the template in action here.

    data_id,location_id,value
    {{#each data}}
    {{#each company.location}}
    {{../id}},{{id}},{{value}}
    {{/each}}
    {{/each}}

    For more information on Handlebars in general, I recommend the Start Here post Getting Started with Handlebars in Chains.

    1
  • Chad Weber

    Thanks Jeff

    This works!

    0

Por favor, entrar para comentar.