Runs the content through [Erubis](www.kuwata-lab.com/erubis/). This method takes no options.
@param [String] content The content to filter
@return [String] The filtered content
# File lib/nanoc/filters/erubis.rb, line 20 def run(content, params={}) # Create context context = ::Nanoc::Context.new(assigns) # Get binding proc = assigns[:content] ? lambda { assigns[:content] } : nil assigns_binding = context.get_binding(&proc) # Get result ErubisWithErbout.new(content, :filename => filename).result(assigns_binding) end
Generated with the Darkfish Rdoc Generator 2.