module Haml::Helpers::ActionViewExtensions
def page_class
-
(String)
- The class name for the current page
def page_class "#{controller.controller_name} #{controller.action_name}" end
def with_raw_haml_concat
- See: Haml::Util#rails_xss_safe? -
Other tags:
- Yield: - A block in which all input to `#haml_concat` is treated as raw.
def with_raw_haml_concat old = instance_variable_defined?(:@_haml_concat_raw) ? @_haml_concat_raw : false @_haml_concat_raw = true yield ensure @_haml_concat_raw = old end