Sha256: 0140da1127911a6d10d93dea923a1b28eba22f12121dbf5cbec4e6a285a80185
Contents?: true
Size: 768 Bytes
Versions: 6
Compression:
Stored size: 768 Bytes
Contents
module Aureus class Renderable include ActionView::Context include ActionView::Helpers::TagHelper include ActionView::Helpers::CaptureHelper include ActionView::Helpers::UrlHelper include Haml::Helpers def initialize(content) @content = content end def init(args, *defaults) @options = defaults.extract_options!.merge(args.extract_options!) end def content_tag(name, content_or_options_with_block=nil, options=nil, escape=false, &block) super(name, content_or_options_with_block, options, escape, &block) end def compact(*args) args.join.html_safe end def compact_render(*args) args.map{ |e| e.render }.join.html_safe end def render @content end end end
Version data entries
6 entries across 6 versions & 1 rubygems