1# Example showing how variables are rendered for non empty lists. 2 3#+begin_src cfengine3 4bundle agent main 5{ 6 vars: 7 "data" data => '{ "list": [ "1", "2", "3" ] }'; 8 9 reports: 10 "$(with)" 11 with => string_mustache("{{#list}} {{{.}}}{{/list}}", 12 data); 13} 14#+end_src 15 16#+begin_src example_output 17#@ ``` 18#@ R: 1 2 3 19#@ ``` 20#+end_src 21 22