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

Version Path
spiderfw-1.0.1 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-1.0.0 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.39 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.38 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.37 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.35 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.34 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.33 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.32 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.31 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.30 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.29 lib/spiderfw/templates/blocks/layout_assets.rb
spiderfw-0.6.28 lib/spiderfw/templates/blocks/layout_assets.rb