Method: Zafu::Process::RubyLessProcessing#rubyless_render
- Defined in:
- lib/zafu/process/ruby_less_processing.rb
#rubyless_render(method, params) ⇒ Object
TEMPORARY METHOD DURING HACKING… def r_erb
"<pre><%= @erb.gsub('<','<').gsub('>','>') %></pre>"
end
67 68 69 70 71 72 73 74 75 76 77 |
# File 'lib/zafu/process/ruby_less_processing.rb', line 67 def rubyless_render(method, params) # We need to set this here because we cannot pass options to RubyLess or get them back # when we evaluate the method to see if we can use blocks as arguments. @rendering_block_owner = true code = method_with_arguments(method, params) # It is strange that we need to freeze code... But if we don't, we # get double ##{} on some systems (Linux). RubyLess.translate(self, code.freeze) ensure @rendering_block_owner = false end |