Sha256: 40543550e294a969113a29c39a046239f4255a9320ca2827dce403b558ce552d

Contents?: true

Size: 511 Bytes

Versions: 5

Compression:

Stored size: 511 Bytes

Contents

module MasterView
  module Directives

    # just eat this output since it is only used for design time
    class Import_render < MasterView::DirectiveBase
      def priority
        DirectivePriorities::VeryHigh
      end

      def stag(dcs)
        #output nothing
      end
      
      def etag(dcs)
        tag = dcs.context[:tag]
        tag.content = [] # clear out any content including from children
        ret = []
        ret << erb_content('render( '+attr_value+' )')
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
masterview-0.1.0 lib/masterview/directives/import_render.rb
masterview-0.1.1 lib/masterview/directives/import_render.rb
masterview-0.1.2 lib/masterview/directives/import_render.rb
masterview-0.1.3 lib/masterview/directives/import_render.rb
masterview-0.1.5 lib/masterview/directives/import_render.rb