Sha256: ea9b756b9f255b745389dd64f67a6e8fc177d68fbe59347858398b687313d943
Contents?: true
Size: 1.09 KB
Versions: 3
Compression:
Stored size: 1.09 KB
Contents
require 'tilt/haml' module Cell module Haml def template_options_for(options) { template_class: ::Tilt::HamlTemplate, escape_html: false, escape_attrs: false, suffix: "haml" } end attr_writer :output_buffer include ActionView::Helpers::FormHelper # From FormTagHelper. why do they escape every possible string? why? def form_tag_in_block(html_options, &block) content = capture(&block) form_tag_with_body(html_options, content) end def form_tag_with_body(html_options, content) "#{form_tag_html(html_options)}" << content.to_s << "</form>" end # def form_tag_html(html_options) # extra_tags = extra_tags_for_form(html_options) # "#{tag(:form, html_options, true) + extra_tags}" # end # def form_for(*args, &block) # TODO: remove this once Haml 4.1 is out. the form_for_with_haml is buggy. # form_for_without_haml(*args, &block) # end # def content_tag(name, content_or_options_with_block=nil, options=nil, escape=false, &block) # super # end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cells-haml-0.0.8 | lib/cell/haml.rb |
cells-haml-0.0.7 | lib/cell/haml.rb |
cells-haml-0.0.6 | lib/cell/haml.rb |