lib/webgen/contentprocessor.rb in webgen-0.5.10 vs lib/webgen/contentprocessor.rb in webgen-0.5.11
- old
+ new
@@ -54,13 +54,13 @@
# raise "Error while replacing special key: #{e.message}"
# end
#
# end
#
- # WebsiteAccess.website.config['contentprocessor.map']['replacer'] = 'SampleProcessor'
+ # Webgen::WebsiteAccess.website.config['contentprocessor.map']['replacer'] = 'SampleProcessor'
# # Or one could equally write
- # # WebsiteAccess.website.config['contentprocessor.map']['replacer'] = ['SampleProcessor', :text]
+ # # Webgen::WebsiteAccess.website.config['contentprocessor.map']['replacer'] = ['SampleProcessor', :text]
#
module ContentProcessor
autoload :Tags, 'webgen/contentprocessor/tags'
autoload :Blocks, 'webgen/contentprocessor/blocks'
@@ -75,9 +75,11 @@
autoload :RDiscount, 'webgen/contentprocessor/rdiscount'
autoload :Fragments, 'webgen/contentprocessor/fragments'
autoload :Head, 'webgen/contentprocessor/head'
autoload :Tidy, 'webgen/contentprocessor/tidy'
autoload :Xmllint, 'webgen/contentprocessor/xmllint'
+ autoload :Kramdown, 'webgen/contentprocessor/kramdown'
+ autoload :Less, 'webgen/contentprocessor/less'
# Return the list of all available content processors.
def self.list
WebsiteAccess.website.config['contentprocessor.map'].keys
end