Sha256: 6eac666d9d0babdb889c8b6848402cef2acfc1acc9f1c8b1ebd4581333bdbb23
Contents?: true
Size: 432 Bytes
Versions: 3
Compression:
Stored size: 432 Bytes
Contents
require 'maruku' module Awestruct module Marukuable def render(context) rendered = '' begin doc = Maruku.new( context.interpolate_string( raw_page_content ) ) rendered = doc.to_html rescue => e puts e puts e.backtrace end rendered end def content context = Awestruct::Engine.create_context( site, page ) render( context ) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
awestruct-0.0.3 | lib/awestruct/marukuable.rb |
awestruct-0.0.2 | lib/awestruct/marukuable.rb |
awestruct-0.0.1 | lib/awestruct/marukuable.rb |