Class: SimpleView::SimpleViewHAML
- Inherits:
-
SimpleViewBase
- Object
- Base
- SimpleViewBase
- SimpleView::SimpleViewHAML
- Defined in:
- lib/simple_view/haml_view.rb
Constant Summary collapse
- EXTENTION =
".haml".freeze
Instance Attribute Summary
Attributes inherited from SimpleViewBase
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from SimpleViewBase
#clean_template_name_for_helper, find_view, #has_helper?, #helper_module_name, #initialize, #lookup_file_helper, #lookup_file_template, lookup_file_template, register, #render, #render_with_helper, #set_helper, #template_content, #template_extension, template_extensions, #template_name, view, views
Methods inherited from Base
#directory_helpers, #directory_views
Constructor Details
This class inherits a constructor from SimpleView::SimpleViewBase
Class Method Details
.extension ⇒ Object
8 9 10 |
# File 'lib/simple_view/haml_view.rb', line 8 def self.extension EXTENTION end |
Instance Method Details
#do_rendering(rendable_object, options) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/simple_view/haml_view.rb', line 14 def do_rendering(rendable_object, ) haml = Haml::Engine.new(self.template_content) render_with_helper(rendable_object) do res = haml.render(rendable_object.get_binding) ([:target] || self.out) << res res end end |