class Nanoc::Filters::Mustache

@api private

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 17
def run(content, _params = {})
  context = item.attributes.merge(yield: assigns[:content])
  ::Mustache.render(content, context)
end