Module: Middleman::Renderers::Knitr

Defined in:
lib/middleman-knitr.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object Also known as: included



23
24
25
26
27
28
29
# File 'lib/middleman-knitr.rb', line 23

def registered(app)
  # knitr is not a ruby app, but we can check that it's installed
  begin 
    ::Tilt.prefer(::Middleman::Renderers::Knitr)    
  rescue LoadError
  end
end