class Nanoc::Filters::Mustache
@api private
Public Instance Methods
Source
# File lib/nanoc/filters/mustache.rb, line 17 def run(content, _params = {}) context = item.attributes.merge(yield: assigns[:content]) ::Mustache.render(content, context) end
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