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
# File lib/haml/helpers/action_view_mods.rb, line 135 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
# File lib/haml/helpers/xss_mods.rb, line 101 101: def form_tag_with_haml_xss(*args, &block) 102: Haml::Util.html_safe(form_tag_without_haml_xss(*args, &block)) 103: end
Alias for form_tag