lib/view.rb in garterbelt-0.0.5 vs lib/view.rb in garterbelt-0.0.6

- old
+ new

@@ -263,18 +263,22 @@ end render_buffer output end + alias :to_s :render + alias :to_html :render + def render_block return output unless block block.call render_buffer output end - alias :to_s :render - alias :to_html :render + def call_block + block.call if block + end def render_buffer array = buffer.dup buffer.clear array.each do |item| \ No newline at end of file