Sha256: 9b2afc741f08f07254d36230e09c786e5af758dc563ea789886d4a91a6dd4708

Contents?: true

Size: 645 Bytes

Versions: 53

Compression:

Stored size: 645 Bytes

Contents

require 'spiderfw/templates/template_blocks'

module Spider; module TemplateBlocks

    class Render < Block

        def compile(options={})
            c = ""
            init = ""
            if (@el.has_attribute?('obj'))
                c_scene_obj = var_to_scene(@el.get_attribute('obj'))
                i_scene_obj = var_to_scene(@el.get_attribute('obj'), 'scene')
                init += "#{i_scene_obj}.request = @request\n"
                init += "#{i_scene_obj}.response = @response\n"
                c += "#{c_scene_obj}.render(self)\n"
            end
            return CompiledBlock.new(init, c)
        end

    end


end; end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
spiderfw-0.6.21 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.20 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.19 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.18 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.17 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.16 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.15 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.14 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.13 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.12 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.11 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.10 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.9 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.8 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.7 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.6 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.5 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.4 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.3 lib/spiderfw/templates/blocks/render.rb
spiderfw-0.6.2 lib/spiderfw/templates/blocks/render.rb