Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Stone committed Oct 2, 2011
1 parent 82ff230 commit 8093092
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ gem "sinatra"
gem "redcarpet", "~>2.0.0b5"
gem "albino"
gem "nokogiri"
gem "thin"
gem "thin", "~>1.2.11"
2 changes: 2 additions & 0 deletions web/mdalbino.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class MarkdownAlbinoEngine < Tilt::Template

class MarkdownAlbino < Redcarpet::Render::HTML
def block_code(code, language)
puts "BLOCK CODE" + language.to_s
return "<pre class='highlight'>#{code}</pre>" if language.nil?
Albino.colorize(code, language)
end
Expand All @@ -25,6 +26,7 @@ def prepare
end

def evaluate(scope, locals, &block)
puts "EVAL"
@output ||= @engine.render(data)
end
end
Expand Down

0 comments on commit 8093092

Please sign in to comment.