1#+begin_src cfengine3 2bundle agent main 3{ 4 vars: 5 "msg" string => "Hello World"; 6 7 "report" 8 string => string_mustache("{{$-top-}}", bundlestate( $(this.bundle) ) ), 9 unless => isvariable( $(this.promiser) ); # Careful to not include 10 # ourselves so we only grab the 11 # state of the first pass. 12 13 reports: 14 "$(report)"; 15} 16#+end_src 17 18#+begin_src example_output 19#@ ``` 20#@ R: {"msg":"Hello World"} 21#@ ``` 22#+end_src 23