Class: Nanoc2::Filters::Old

Inherits:
Nanoc2::Filter show all
Defined in:
lib/nanoc2/filters/old.rb

Constant Summary

Constants inherited from Nanoc2::Filter

Nanoc2::Filter::EXTENSIONS_MAP

Constants inherited from Plugin

Plugin::MAP

Instance Method Summary collapse

Methods inherited from Nanoc2::Filter

#assigns, #filename, #initialize

Methods inherited from Plugin

identifier, identifiers, named, register

Constructor Details

This class inherits a constructor from Nanoc2::Filter

Instance Method Details

#run(content) ⇒ Object

Raises:



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/nanoc2/filters/old.rb', line 6

def run(content)
  raise Nanoc2::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