| Module | ActionView::Helpers::FormTagHelper |
| In: |
lib/haml/helpers/action_view_mods.rb
lib/haml/helpers/xss_mods.rb |
| form_tag | -> | form_tag_without_haml |
Alias for form_tag_with_haml
Alias for form_tag_with_haml
# File lib/haml/helpers/action_view_mods.rb, line 139
139: def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
140: if is_haml?
141: if block_given?
142: oldproc = proc
143: proc = haml_bind_proc do |*args|
144: concat "\n"
145: with_tabs(1) {oldproc.call(*args)}
146: end
147: end
148: res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
149: res << "\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
# File lib/haml/helpers/action_view_mods.rb, line 174
174: def form_tag_with_haml(url_for_options = {}, options = {}, *parameters_for_url, &proc)
175: if is_haml?
176: if block_given?
177: oldproc = proc
178: proc = haml_bind_proc do |*args|
179: concat "\n"
180: tab_up
181: oldproc.call(*args)
182: tab_down
183: concat haml_indent
184: end
185: concat haml_indent
186: end
187: res = form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc) + "\n"
188: concat "\n" if block_given?
189: res
190: else
191: form_tag_without_haml(url_for_options, options, *parameters_for_url, &proc)
192: end
193: end
# File lib/haml/helpers/xss_mods.rb, line 114
114: def form_tag_with_haml_xss(*args, &block)
115: Haml::Util.html_safe(form_tag_without_haml_xss(*args, &block))
116: end
Alias for form_tag
Alias for form_tag