handlebars-rust icon indicating copy to clipboard operation
handlebars-rust copied to clipboard

Cannot use {{# each.}}}

Open zhangwuqiao opened this issue 1 year ago • 1 comments

{{#each .}} sn:{{id}},flowID:{{flow_id}} {{/each}}

json: [{"id":1,"flow_id":50},{"id":2,"flow_id":51},{"id":3,"flow_id":52},{"id":4,"flow_id":53}]

 {{#each .}}

|---------^- = reason: invalid handlebars syntax: expected identifier, helper_parameter, block_param, or trailing_tilde_to_omit_whitespace

图片

zhangwuqiao avatar Aug 15 '24 10:08 zhangwuqiao

Yes. This is due to a limitation of our parser. You can use {{#each this}} as a workaround

sunng87 avatar Aug 15 '24 10:08 sunng87