Sha256: ab883211c2de3e5651866498136c4bdf18d6bda3d410627b3f83a0a3164434e0

Contents?: true

Size: 402 Bytes

Versions: 14

Compression:

Stored size: 402 Bytes

Contents

module Awestruct

  module Hamlable
    def render(context)
      rendered = ''
      begin
        haml_engine = Haml::Engine.new( raw_page_content )
        rendered = haml_engine.render( context )
      rescue => e
        puts e
        puts e.backtrace
      end
      rendered
    end

    def content
      context = site.engine.create_context( self )
      render( context )
    end
  end

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
awestruct-0.1.9 lib/awestruct/hamlable.rb
awestruct-0.1.8 lib/awestruct/hamlable.rb
awestruct-0.1.7 lib/awestruct/hamlable.rb
awestruct-0.1.6 lib/awestruct/hamlable.rb
awestruct-0.1.5 lib/awestruct/hamlable.rb
awestruct-0.1.4 lib/awestruct/hamlable.rb
awestruct-0.1.3 lib/awestruct/hamlable.rb
awestruct-0.1.2 lib/awestruct/hamlable.rb
awestruct-0.1.1 lib/awestruct/hamlable.rb
awestruct-0.1.0 lib/awestruct/hamlable.rb
awestruct-0.0.9 lib/awestruct/hamlable.rb
awestruct-0.0.8 lib/awestruct/hamlable.rb
awestruct-0.0.6 lib/awestruct/hamlable.rb
awestruct-0.0.5 lib/awestruct/hamlable.rb