lib/spiderfw/templates/blocks/layout_assets.rb in spiderfw-0.6.27 vs lib/spiderfw/templates/blocks/layout_assets.rb in spiderfw-0.6.28
- old
+ new
@@ -5,12 +5,15 @@
class LayoutAssets < Block
def compile(options={})
init = ""
c = ""
- type = @el.get_attribute('type')
+ type = @el.get_attribute('type') || 'nil'
+ prefix = @el.get_attribute('prefix')
c += "output_assets"
- c+= "(:#{type})" if type
+ c+= "(:#{type}"
+ c += ", :prefix => '#{prefix}'" if prefix
+ c += ")"
c += "\n"
return CompiledBlock.new(init, c)
end
end
\ No newline at end of file