Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (13 sloc) 0.271 kb
require 'uv'
module BrighterPlanetHelper
def render_or_nothing(*args)
begin
render(*args)
rescue ::ActionView::MissingTemplate
nil
end
end
def syntax(code, lang = 'ruby')
::Uv.parse(code, 'xhtml', lang, false, :idle).html_safe
end
end
Jump to Line
Something went wrong with that request. Please try again.