-
-
Save joelmoss/381858 to your computer and use it in GitHub Desktop.
Revisions
-
defunkt created this gist
Apr 27, 2010 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ class MyView < Mustache def markdown(str = nil) if str Markdown.new(str.to_s).to_html else lambda { |text| markdown(render(text)) } end end end This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,5 @@ <div class="column main"> {{# markdown}} {{{ description }}} {{/ markdown}} </div>