class Nanoc::Filters::Mustache
@since 3.2.0
@api private
Public Instance Methods
run(content, _params = {}) { |: assigns| ... }
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 15 def run(content, _params = {}) context = item.attributes.merge({ yield: assigns[:content] }) ::Mustache.render(content, context) end