Sha256: d7f1ae8d8a024b1ace64b83a69427ffe7b3642dcc28fd4f387e25a9da49886b7

Contents?: true

Size: 484 Bytes

Versions: 61

Compression:

Stored size: 484 Bytes

Contents

module Spider; module TemplateBlocks
    
    class Tag < Block

        
        def compile(options={})
            block = Spider::TemplateBlocks.parse_element(process, @allowed_blocks, @template)
            return block.compile(options)
        end
        
        def process
            klass = Spider::Template.get_registered_class(@el.name)
            tag = klass.new(@el)
            return Hpricot(tag.render).root
        end
        
        
    end
    
    
end; end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 lib/spiderfw/templates/blocks/tag.rb
spiderfw-1.0.0 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.39 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.38 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.37 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.35 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.34 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.33 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.32 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.31 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.30 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.29 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.28 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.27 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.26 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.26.pre1 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.25 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.24 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.23 lib/spiderfw/templates/blocks/tag.rb
spiderfw-0.6.22 lib/spiderfw/templates/blocks/tag.rb