Runs the content through [Haml](haml-lang.com/). Parameters passed to this filter will be passed on to Haml.
@param [String] content The content to filter
@return [String] The filtered content
# File lib/nanoc3/filters/haml.rb, line 11 def run(content, params={}) require 'haml' # Get options options = params.merge(:filename => filename) # Create context context = ::Nanoc3::Context.new(assigns) # Get result ::Haml::Engine.new(content, options).render(context, assigns) { assigns[:content] } end
Generated with the Darkfish Rdoc Generator 2.