135: def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
136: if is_haml?
137: if block_given?
138: oldproc = proc
139: proc = haml_bind_proc do |*args|
140: concat "\n"
141: tab_up
142: oldproc.call(*args)
143: tab_down
144: concat haml_indent
145: end
146: concat haml_indent
147: end
148: res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
149: concat "\n" if block_given?
150: res
151: else
152: form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
153: end
154: end