summaryrefslogtreecommitdiff
path: root/templates/vhosts/itk_plus.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 19:22:40 +0200
committermh <mh@immerda.ch>2011-10-08 19:22:40 +0200
commit2fa748dcc92e34b13bd4b6f7e452ef89b29490c4 (patch)
treef3827bd2c8cc3206b4f2a5a8a09b4951940d6cc4 /templates/vhosts/itk_plus.erb
parent24c047d1cfc54c003eef7445e177e28f373c1da4 (diff)
introduce a new template style, less duplicated things, more handy options
Diffstat (limited to 'templates/vhosts/itk_plus.erb')
-rw-r--r--templates/vhosts/itk_plus.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/vhosts/itk_plus.erb b/templates/vhosts/itk_plus.erb
new file mode 100644
index 0000000..2890ecf
--- /dev/null
+++ b/templates/vhosts/itk_plus.erb
@@ -0,0 +1,10 @@
+<IfDefine HttpdLocal>
+<%= scope.function_template('apache/vhost/default.erb') %>
+</IfDefine>
+<IfDefine !HttpdLocal>
+<%
+ scope.unsetvar('template_partial')
+ scope.setvar('template_partial','apache/vhosts/itk_plus/partial.erb')
+-%>
+<%= scope.function_template('apache/vhost/default.erb') %>
+</IfDefine> \ No newline at end of file