diff options
Diffstat (limited to 'templates/ini.epp')
-rw-r--r-- | templates/ini.epp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/ini.epp b/templates/ini.epp new file mode 100644 index 0000000..59c41d8 --- /dev/null +++ b/templates/ini.epp @@ -0,0 +1,13 @@ +<%- | Hash[String, Hash[String, Any]] $sections, +| -%> +<%- $sections.each |$header, $values| { -%> + <%- $values.each |$key, $value| { -%> + <%- if $value == undef { -%> + <%- } elsif $value =~ Array { -%> +<%= $key %>=<%= $value.join(' ') %> + <%- } else { -%> +<%= $key %>=<%= $value %> + <%- } -%> + <%- } -%> +<%- } -%> + |