if render isn't passed content, try to fetch it
Chris Wanstrath chris@ozmm.org
Thu, 11 Mar 2010 14:17:35 -0800
1 files changed,
3 insertions(+),
1 deletions(-)
jump to
M
lib/github/markup.rb
→
lib/github/markup.rb
@@ -9,7 +9,9 @@ module Markup
extend self @@markups = {} - def render(filename, content) + def render(filename, content = nil) + content ||= File.read(filename) + if proc = renderer(filename) proc[content] else