Extension -> Plugin
This commit is contained in:
parent
5335debfb2
commit
31c65c56f4
|
@ -1,4 +1,6 @@
|
||||||
== Edge
|
== Edge
|
||||||
|
* Major Enhancements
|
||||||
|
* Proper plugin system (#19, #100)
|
||||||
* Minor Enhancements
|
* Minor Enhancements
|
||||||
* Inclusion/exclusion of future dated posts (#59)
|
* Inclusion/exclusion of future dated posts (#59)
|
||||||
* Generation for a specific time (#59)
|
* Generation for a specific time (#59)
|
||||||
|
|
|
@ -35,8 +35,8 @@ require 'jekyll/filters'
|
||||||
require 'jekyll/albino'
|
require 'jekyll/albino'
|
||||||
require 'jekyll/static_file'
|
require 'jekyll/static_file'
|
||||||
|
|
||||||
#extensions
|
# extensions
|
||||||
require 'jekyll/extension'
|
require 'jekyll/plugin'
|
||||||
require 'jekyll/converter'
|
require 'jekyll/converter'
|
||||||
require 'jekyll/generator'
|
require 'jekyll/generator'
|
||||||
require_all 'jekyll/converters'
|
require_all 'jekyll/converters'
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
|
|
||||||
class Converter < Extension
|
class Converter < Plugin
|
||||||
# Public: Get or set the pygments prefix. When an argument is specified,
|
# Public: Get or set the pygments prefix. When an argument is specified,
|
||||||
# the prefix will be set. If no argument is specified, the current prefix
|
# the prefix will be set. If no argument is specified, the current prefix
|
||||||
# will be returned.
|
# will be returned.
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
|
|
||||||
class Generator < Extension
|
class Generator < Plugin
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
module Jekyll
|
module Jekyll
|
||||||
|
|
||||||
class Extension
|
class Plugin
|
||||||
PRIORITIES = { :lowest => -100,
|
PRIORITIES = { :lowest => -100,
|
||||||
:low => -10,
|
:low => -10,
|
||||||
:normal => 0,
|
:normal => 0,
|
||||||
|
@ -49,7 +49,7 @@ module Jekyll
|
||||||
PRIORITIES[other.priority] <=> PRIORITIES[self.priority]
|
PRIORITIES[other.priority] <=> PRIORITIES[self.priority]
|
||||||
end
|
end
|
||||||
|
|
||||||
# Initialize a new extension. This should be overridden by the subclass.
|
# Initialize a new plugin. This should be overridden by the subclass.
|
||||||
#
|
#
|
||||||
# config - The Hash of configuration options.
|
# config - The Hash of configuration options.
|
||||||
#
|
#
|
Loading…
Reference in New Issue