Runs the content through [ERB](ruby-doc.org/stdlib/libdoc/erb/rdoc/classes/ERB.html). This method takes no options.
@param [String] content The content to filter
@return [String] The filtered content
# File lib/nanoc3/filters/erb.rb, line 11 def run(content, params={}) require 'erb' # Create context context = ::Nanoc3::Context.new(assigns) # Get result erb = ::ERB.new(content) erb.filename = filename erb.result(context.get_binding { assigns[:content] }) end
Generated with the Darkfish Rdoc Generator 2.