Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

if render isn't passed content, try to fetch it

  • Loading branch information...
commit d8d6cbb605a3a3c44928bb12b5811191a765f070 1 parent 04214a0
@defunkt defunkt authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/github/markup.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.