From c67f0b2119e0e3fb2101f722550d805534c37f91 Mon Sep 17 00:00:00 2001 From: mh Date: Fri, 25 Feb 2011 15:36:15 +0100 Subject: fixing template foo --- templates/vhosts/default.erb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'templates/vhosts/default.erb') diff --git a/templates/vhosts/default.erb b/templates/vhosts/default.erb index 172518c..22aa391 100644 --- a/templates/vhosts/default.erb +++ b/templates/vhosts/default.erb @@ -6,12 +6,13 @@ vhost_parts = case ssl_mode else [:normal,:ssl] end vhost_parts.each do |vhost_part| - # we need this variable in included templates - @vhost_part = vhost_part + scope.unsetvar('vhost_part') + scope.setvar('vhost_part',vhost_part) %> > <%= scope.function_template('apache/vhosts/partials/header_default.erb') %> + <%= scope.function_template('apache/vhosts/partials/logs.erb') %> <%- if ssl_mode == 'force' && vhost_part == :normal %> -- cgit v1.2.3