lib/nanoc/filters/slim.rb
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
# Runs the content through [Slim](http://slim-lang.com/).
# This method takes no options.
#
# @param [String] content The content to filter
#
# @return [String] The filtered content
Runs the content through [Slim].
This method takes no options.
Runs the content through [ Slim ] . This method takes no options .
def run(content, params={})
      params = {
        :disable_capture => true,      
        :buffer          => '_erbout', 
      }.merge params
      context = ::Nanoc::Context.new(assigns)
      ::Slim::Template.new(params) { content }.render(context) { assigns[:content] }
    end
def run ( content , params = { } ) params = { :disable_capture => true , :buffer => '_erbout' , } . merge params context = :: Nanoc :: Context . new ( assigns ) :: Slim :: Template . new ( params ) { content } . render ( context ) { assigns [ :content ] } end
Runs the content through [Slim](http://slim-lang.com/).
Runs the content through [ Slim ] ( http : // slim - lang . com / ) .
# Capture managed by nanoc # Force slim to output to the buffer used by nanoc # Create context
The filtered content
The filtered content
String
content
params
content The content to filter
content The content to filter