module Deface::HamlCompilerMethods
Public Instance Methods
push_script(text, preserve_script, in_tag = false, preserve_tag = false, escape_html = false, nuke_inner_whitespace = false) { || ... }
click to toggle source
# File lib/deface/haml_converter.rb, line 4 def push_script(text, preserve_script, in_tag = false, preserve_tag = false, escape_html = false, nuke_inner_whitespace = false) push_text "<%= #{text.strip} %>" if block_given? yield push_silent('end') end end
push_silent(text, can_suppress = false)
click to toggle source
# File lib/deface/haml_converter.rb, line 14 def push_silent(text, can_suppress = false) push_text "<% #{text.strip} %>" end