|
2021년 1월부터 기존 파일 형식을 더 이상 사용할 수 없습니다. 기존 파일을 전환하거나 PDF를 다운로드할 수 있습니다. 자세히 알아보기

Handlebar Output

답변함
0

댓글

댓글 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

댓글을 남기려면 로그인하세요.