Sha256: be10eb926572f6cfcaca8ba9e570d03e69a260a995723b75bd81c3137eb696c7
Contents?: true
Size: 547 Bytes
Versions: 13
Compression:
Stored size: 547 Bytes
Contents
require 'spiderfw/templates/template_blocks' module Spider; module TemplateBlocks class LayoutAssets < Block def compile(options={}) init = "" c = "" type = @el.get_attribute('type') || 'nil' prefix = @el.get_attribute('prefix') c += "output_assets" c+= "(:#{type}" c += ", :prefix => '#{prefix}'" if prefix c += ")" c += "\n" return CompiledBlock.new(init, c) end end end; end
Version data entries
13 entries across 13 versions & 1 rubygems