Sha256: 22d85380aa8763ab0864e7984e1bd3ff90053d7bb0f84554efa7c5163a0c6b61

Contents?: true

Size: 541 Bytes

Versions: 10

Compression:

Stored size: 541 Bytes

Contents

module Nanoc::Filters
  class Old < Nanoc::Filter

    identifiers :eruby, :markdown, :smartypants, :textile

    def run(content)
      raise Nanoc::Error.new(
        "The 'eruby', markdown', 'smartypants' and 'textile' filters no " +
        "longer exist. Instead, use the following filters:\n" +
        "\n" +
        "* for Markdown:      bluecloth, rdiscount, redcloth\n" +
        "* for Textile:       redcloth\n" +
        "* for embedded Ruby: erb, erubis\n" +
        "* for Smartypants:   rubypants"
      )
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
nanoc-2.1 lib/nanoc/filters/old.rb
nanoc-2.1.1 lib/nanoc/filters/old.rb
nanoc-2.1.2 lib/nanoc/filters/old.rb
nanoc-2.1.3 lib/nanoc/filters/old.rb
nanoc-2.1.4 lib/nanoc/filters/old.rb
nanoc-2.1.5 lib/nanoc/filters/old.rb
nanoc-2.1.6 lib/nanoc/filters/old.rb
nanoc-2.2 lib/nanoc/filters/old.rb
nanoc-2.2.1 lib/nanoc/filters/old.rb
nanoc-2.2.2 lib/nanoc/filters/old.rb