Sha256: b385f102dba6ead7f4311a4954af3ef9c09a351b73e469ea2efcf7a771d7a8c3

Contents?: true

Size: 453 Bytes

Versions: 6

Compression:

Stored size: 453 Bytes

Contents

# encoding: utf-8

module Nanoc::Filters
  class Markaby < Nanoc::Filter

    requires 'markaby'

    # Runs the content through [Markaby](http://markaby.rubyforge.org/).
    # 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

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-3.7.1 lib/nanoc/filters/markaby.rb
nanoc-3.7.0 lib/nanoc/filters/markaby.rb
nanoc-3.6.11 lib/nanoc/filters/markaby.rb
nanoc-3.6.10 lib/nanoc/filters/markaby.rb
nanoc-3.6.9 lib/nanoc/filters/markaby.rb
nanoc-3.6.8 lib/nanoc/filters/markaby.rb