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