Parent

Methods

Class/Module Index [+]

Quicksearch

Nanoc::Filters::Mustache

@since 3.2.0

Public Instance Methods

run(content, params={}) click to toggle source

Runs the content through [Mustache](github.com/defunkt/mustache). This method takes no options.

@param [String] content The content to filter

@return [String] The filtered content

# File lib/nanoc/filters/mustache.rb, line 16
def run(content, params={})
  context = item.attributes.merge({ :yield => assigns[:content] })
  ::Mustache.render(content, context)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.