Sha256: c7cc0b84d64d11b2055c2169dbee706155f8e5f91bd2a7adcd3242789cf9eab8
Contents?: true
Size: 972 Bytes
Versions: 2
Compression:
Stored size: 972 Bytes
Contents
module WrapIt # # Provides render function for Rails # # @author Alexey Ovchinnikov <alexiss@cybernetlab.ru> # module Renderer def empty_html ''.html_safe end def html_safe(text) text.html_safe end def html_safe?(text) text.html_safe? end def superhtml(text) text.to_s end def capture(*args, &block) @template.capture(*args, &block) end def concat(*args, &block) @template.concat(*args, &block) end def content_tag(*args, &block) @template.content_tag(*args, &block) end def output_buffer(*args, &block) @template.output_buffer(*args, &block) end # def self.included(base) # puts "LOADED" # base.class_eval do # delegate :capture, :concat, :content_tag, # :output_buffer, to: :@template # protected :capture, :concat, :content_tag, # :output_buffer # end # end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wrap_it-0.1.1 | lib/wrap_it/rails.rb |
wrap_it-0.1.0 | lib/wrap_it/rails.rb |