Sha256: 2eff2ce66e1e8aa45fcca65960cd0eb6b1266a94236004e3def892716dd2a067
Contents?: true
Size: 635 Bytes
Versions: 8
Compression:
Stored size: 635 Bytes
Contents
require 'spiderfw/templates/template_blocks' module Spider; module TemplateBlocks class Render < Block def compile(options={}) c = "" init = "" if (@el.attributes['obj']) c_scene_obj = var_to_scene(@el.attributes['obj']) i_scene_obj = var_to_scene(@el.attributes['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
8 entries across 8 versions & 1 rubygems