Sha256: a4668966c3e8883802e245a7ba695c5b6a14787280bdf3ef9b3c588c181019ad
Contents?: true
Size: 256 Bytes
Versions: 4
Compression:
Stored size: 256 Bytes
Contents
module Sinatra class Base def markdown sym md = File.expand_path(File.join(Caboodle::App.root,"config","#{sym.to_s}.md")) @content = Maruku.new(open(md).read).to_html_document haml ".page.about.thin_page= @content" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
caboodle-0.2.21 | lib/caboodle/markdown.rb |
caboodle-0.2.20 | lib/caboodle/markdown.rb |
caboodle-0.2.19 | lib/caboodle/markdown.rb |
caboodle-0.2.18 | lib/caboodle/markdown.rb |