# File lib/nanoc/filters/slim.rb, line 16 def run(content, params={}) params = { :disable_capture => true, # Capture managed by nanoc :buffer => '_erbout', # Force slim to output to the buffer used by nanoc }.merge params # Create context context = ::Nanoc::Context.new(assigns) ::Slim::Template.new(params) { content }.render(context) { assigns[:content] } end