all repos — markup @ d8d6cbb605a3a3c44928bb12b5811191a765f070

The code we use to render README.your_favorite_markup

if render isn't passed content, try to fetch it
Chris Wanstrath chris@ozmm.org
Thu, 11 Mar 2010 14:17:35 -0800
commit

d8d6cbb605a3a3c44928bb12b5811191a765f070

parent

04214a02572f67508e01c0c80e4b00c7cbc8a02f

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M lib/github/markup.rblib/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