* snippets/cfengine3-mode/filetemplate: proper indentation and all
necessary elements for mustache templates.
# -*- mode: snippet -*-
# name: filetemplate
# key: filetemplate
# -*- mode: snippet -*-
# name: filetemplate
# key: filetemplate
+# expand-env: ((yas-indent-line 'auto))
-handle => "${1:$(concat (replace-regexp-in-string "^bundle_agent_" "" (replace-regexp-in-string "[ /.-]" "_" (which-function))) "_edit" (replace-regexp-in-string "[ )$(/.-]" "_" (yas-text)))}",
-comment => "configure $1",
-perms => mog("${2:440}","${3:root}","${4:root}"),
-create => "${5:$$(yas-choose-value '("true" "false"))}",
-edit_template => "\$(this.promise_dirname)/templates/${6}";
+ handle => "\$(this.bundle)_\$(this.promiser)",
+ perms => mog("${2:440}","${3:root}","${4:root}"),
+ create => "${5:$$(yas-choose-value '("true" "false"))}",
+ template_method => "mustache",
+ edit_template => "\$(this.promise_dirname)/templates/${6}.mustache",
+ comment => "$0";