18 lines
641 B
Text
18 lines
641 B
Text
location <%= @location %> {
|
|
<% if @location_cfg_prepend -%><% @location_cfg_prepend.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
|
|
<%= key %> <%= subkey %> <%= subvalue %>;
|
|
<% end -%><% else -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%>
|
|
<% end -%><% end -%>
|
|
stub_status on;
|
|
<% if @location_cfg_append -%><% @location_cfg_append.sort_by {|k,v| k}.each do |key,value| -%>
|
|
<% if value.is_a?(Hash) -%><% value.each do |subkey,subvalue| -%>
|
|
<%= key %> <%= subkey %> <%= subvalue %>;
|
|
<% end -%><% else -%>
|
|
<%= key %> <%= value %>;
|
|
<% end -%>
|
|
<% end -%><% end -%>
|
|
}
|
|
|