Module: Cell::Haml
- Includes:
- ActionView::Helpers::FormHelper
- Defined in:
- lib/cell/haml.rb,
lib/cell/haml/version.rb
Constant Summary collapse
- VERSION =
"0.0.8"
Instance Attribute Summary collapse
-
#output_buffer ⇒ Object
writeonly
Sets the attribute output_buffer.
Instance Method Summary collapse
-
#form_tag_in_block(html_options, &block) ⇒ Object
From FormTagHelper.
- #form_tag_with_body(html_options, content) ⇒ Object
- #template_options_for(options) ⇒ Object
Instance Attribute Details
#output_buffer=(value) ⇒ Object (writeonly)
Sets the attribute output_buffer
14 15 16 |
# File 'lib/cell/haml.rb', line 14 def output_buffer=(value) @output_buffer = value end |
Instance Method Details
#form_tag_in_block(html_options, &block) ⇒ Object
From FormTagHelper. why do they escape every possible string? why?
19 20 21 22 |
# File 'lib/cell/haml.rb', line 19 def form_tag_in_block(, &block) content = capture(&block) form_tag_with_body(, content) end |
#form_tag_with_body(html_options, content) ⇒ Object
24 25 26 |
# File 'lib/cell/haml.rb', line 24 def form_tag_with_body(, content) "#{form_tag_html()}" << content.to_s << "</form>" end |
#template_options_for(options) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/cell/haml.rb', line 5 def () { template_class: ::Tilt::HamlTemplate, escape_html: false, escape_attrs: false, suffix: "haml" } end |