Sha256: 3da4db474c3d20bb755f69d86bfe5cdf2cc7d0eff9f392996adc42f30a28170d

Contents?: true

Size: 382 Bytes

Versions: 12

Compression:

Stored size: 382 Bytes

Contents

module Awestruct

  module Textilable
    def render(context)
      rendered = ''
      begin
        rendered = RedCloth.new( context.interpolate_string( raw_page_content ) ).to_html
      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

12 entries across 12 versions & 1 rubygems

Version Path
awestruct-0.2.5 lib/awestruct/textilable.rb
awestruct-0.2.4 lib/awestruct/textilable.rb
awestruct-0.2.3 lib/awestruct/textilable.rb
awestruct-0.2.2 lib/awestruct/textilable.rb
awestruct-0.2.1 lib/awestruct/textilable.rb
awestruct-0.2.0 lib/awestruct/textilable.rb
awestruct-0.1.9 lib/awestruct/textilable.rb
awestruct-0.1.8 lib/awestruct/textilable.rb
awestruct-0.1.7 lib/awestruct/textilable.rb
awestruct-0.1.6 lib/awestruct/textilable.rb
awestruct-0.1.5 lib/awestruct/textilable.rb
awestruct-0.1.4 lib/awestruct/textilable.rb