Sha256: 1db78c436e54ef823701947d6bd28e4715f91214c862be32a86033299f5b09bb

Contents?: true

Size: 446 Bytes

Versions: 15

Compression:

Stored size: 446 Bytes

Contents

# encoding: utf-8

require 'markaby'

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

    # 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

15 entries across 15 versions & 1 rubygems

Version Path
nanoc-3.5.0 lib/nanoc/filters/markaby.rb
nanoc-3.5.0b2 lib/nanoc/filters/markaby.rb
nanoc-3.5.0b1 lib/nanoc/filters/markaby.rb
nanoc-3.4.3 lib/nanoc/filters/markaby.rb
nanoc-3.4.2 lib/nanoc/filters/markaby.rb
nanoc-3.4.1 lib/nanoc/filters/markaby.rb
nanoc-3.4.0 lib/nanoc/filters/markaby.rb
nanoc-3.3.7 lib/nanoc/filters/markaby.rb
nanoc-3.3.6 lib/nanoc/filters/markaby.rb
nanoc-3.3.5 lib/nanoc/filters/markaby.rb
nanoc-3.3.4 lib/nanoc/filters/markaby.rb
nanoc-3.3.3 lib/nanoc/filters/markaby.rb
nanoc-3.3.2 lib/nanoc/filters/markaby.rb
nanoc-3.3.1 lib/nanoc/filters/markaby.rb
nanoc-3.3.0 lib/nanoc/filters/markaby.rb