Uploaded image for project: 'CFEngine Community'
  1. CFEngine Community
  2. CFE-1846

As a policy writer I would like to be able to specify mustache templates inline

    XMLWordPrintable

    Details

      Description

      I would like to have the possibility to inline the template in the promise instead of having to write a separate file.

      • Better for standalone policies
      • Better for very simple mustache templates

      For example:

      "/mu/file"
           edit_template_string => "{{%-top-}}",
           template_method => "inline_mustache"; # cfengine|mustache|inline_mustache
      

      Note that the string_mustache() function provides this inline template facility but only for rendering strings, not for rendering to a file.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                opentokix Open T Okix
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel