Module: Sinatra::Erb
- Defined in:
- lib/runit-man/erb-to-erubis.rb
Instance Method Summary collapse
Instance Method Details
#erb(content, options = {}) ⇒ Object
2 3 4 5 6 7 8 9 10 11 |
# File 'lib/runit-man/erb-to-erubis.rb', line 2 def erb(content, ={}) begin require 'erubis' @@erb_class = Erubis::Eruby rescue LoadError require "erb" @@erb_class = ::ERB end render(:erb, content, ) end |