Sha256: 95f4e1862ce24362dded2f87118bd4f9efbe57df0e8d7426203344aa35213986

Contents?: true

Size: 446 Bytes

Versions: 42

Compression:

Stored size: 446 Bytes

Contents

module Nanoc::Filters
  # @api private
  class Markaby < Nanoc::Filter
    requires 'markaby'

    # Runs the content through [Markaby](http://markaby.github.io/).
    # This method takes no options.
    #
    # @param [String] content The content to filter
    #
    # @return [String] The filtered content
    def run(content, _params = {})
      # Get result
      ::Markaby::Builder.new(assigns).instance_eval(content).to_s
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
nanoc-4.4.7 lib/nanoc/filters/markaby.rb
nanoc-4.4.6 lib/nanoc/filters/markaby.rb
nanoc-4.4.5 lib/nanoc/filters/markaby.rb
nanoc-4.4.4 lib/nanoc/filters/markaby.rb
nanoc-4.4.3 lib/nanoc/filters/markaby.rb
nanoc-4.4.2 lib/nanoc/filters/markaby.rb
nanoc-4.4.1 lib/nanoc/filters/markaby.rb
nanoc-4.4.0 lib/nanoc/filters/markaby.rb
nanoc-4.3.8 lib/nanoc/filters/markaby.rb
nanoc-4.3.7 lib/nanoc/filters/markaby.rb
nanoc-4.3.6 lib/nanoc/filters/markaby.rb
nanoc-4.3.5 lib/nanoc/filters/markaby.rb
nanoc-4.3.4 lib/nanoc/filters/markaby.rb
nanoc-4.3.3 lib/nanoc/filters/markaby.rb
nanoc-4.3.2 lib/nanoc/filters/markaby.rb
nanoc-4.3.1 lib/nanoc/filters/markaby.rb
nanoc-4.3.0 lib/nanoc/filters/markaby.rb
nanoc-4.2.4 lib/nanoc/filters/markaby.rb
nanoc-4.2.3 lib/nanoc/filters/markaby.rb
nanoc-4.2.2 lib/nanoc/filters/markaby.rb