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.2.1 lib/nanoc/filters/markaby.rb
nanoc-4.2.0 lib/nanoc/filters/markaby.rb
nanoc-4.1.6 lib/nanoc/filters/markaby.rb
nanoc-4.2.0b1 lib/nanoc/filters/markaby.rb
nanoc-4.1.5 lib/nanoc/filters/markaby.rb
nanoc-4.1.4 lib/nanoc/filters/markaby.rb
nanoc-4.1.3 lib/nanoc/filters/markaby.rb
nanoc-4.1.2 lib/nanoc/filters/markaby.rb
nanoc-4.1.1 lib/nanoc/filters/markaby.rb
nanoc-4.1.0 lib/nanoc/filters/markaby.rb
nanoc-4.1.0rc2 lib/nanoc/filters/markaby.rb
nanoc-4.1.0rc1 lib/nanoc/filters/markaby.rb
nanoc-4.1.0b1 lib/nanoc/filters/markaby.rb
nanoc-4.1.0a1 lib/nanoc/filters/markaby.rb
nanoc-4.0.2 lib/nanoc/filters/markaby.rb
nanoc-4.0.1 lib/nanoc/filters/markaby.rb
nanoc-4.0.0 lib/nanoc/filters/markaby.rb
nanoc-4.0.0rc3 lib/nanoc/filters/markaby.rb
nanoc-4.0.0rc2 lib/nanoc/filters/markaby.rb
nanoc-4.0.0rc1 lib/nanoc/filters/markaby.rb