summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-01-29 17:37:37 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2023-01-29 17:37:37 +0100
commit80ea14aff671b29e34a4653b45d6b7c5598db3bb (patch)
tree19a2b2c131f298fb795e2279029f146dcfc2b660 /templates
parentInitial commit. (diff)
downloadxorg-80ea14aff671b29e34a4653b45d6b7c5598db3bb.tar.gz
xorg-80ea14aff671b29e34a4653b45d6b7c5598db3bb.tar.xz
Initial code add.HEADmaster
Diffstat (limited to 'templates')
-rw-r--r--templates/xorg.conf.epp17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/xorg.conf.epp b/templates/xorg.conf.epp
new file mode 100644
index 0000000..4ef4e6c
--- /dev/null
+++ b/templates/xorg.conf.epp
@@ -0,0 +1,17 @@
+<%- |
+ String $section,
+ Optional[String] $identifier,
+ Array[Tuple[String, Any]] $options,
+ Hash[String, Any] $entries,
+| -%>
+Section "<%= $section %>"
+ <%- if $identifier { -%>
+ Identifier "<%= $identifier %>"
+ <%- } -%>
+ <%- $options.each |$tup| { -%>
+ Option "<%= $tup[0] %>" "<%= $tup[1] %>"
+ <%- } -%>
+ <%- $entries.each |$k, $v| { -%>
+ <%= $k %> "<%= $v %>"
+ <%- } -%>
+EndSection