Sha256: f263ecea35752c787fbb1f5d286f78699caa0088a16e8b23e5c121a03dadbaac

Contents?: true

Size: 254 Bytes

Versions: 7

Compression:

Stored size: 254 Bytes

Contents

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

    identifiers :markaby
    extensions  '.mab'

    def run(content)
      require 'markaby'

      # Get result
      ::Markaby::Builder.new(assigns).instance_eval(content).to_s
    end

  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
nanoc-2.1 lib/nanoc/filters/markaby.rb
nanoc-2.1.1 lib/nanoc/filters/markaby.rb
nanoc-2.1.2 lib/nanoc/filters/markaby.rb
nanoc-2.1.3 lib/nanoc/filters/markaby.rb
nanoc-2.1.4 lib/nanoc/filters/markaby.rb
nanoc-2.1.5 lib/nanoc/filters/markaby.rb
nanoc-2.1.6 lib/nanoc/filters/markaby.rb