lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.29 vs lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.30

- old
+ new

@@ -7,38 +7,48 @@ require 'octopress-ink/jekyll/hooks' require 'octopress-ink/version' require 'octopress-ink/helpers/titlecase' module Octopress - CUSTOM_DIR = "_custom" - autoload :Helpers, 'octopress-ink/helpers' autoload :Filters, 'octopress-ink/filters' autoload :Assets, 'octopress-ink/assets' - autoload :StaticFile, 'octopress-ink/assets/static_file' - autoload :StaticFileContent, 'octopress-ink/assets/static_file_content' + autoload :Page, 'octopress-ink/jekyll/page' + autoload :StaticFile, 'octopress-ink/jekyll/static_file' + autoload :StaticFileContent, 'octopress-ink/jekyll/static_file_content' autoload :Plugins, 'octopress-ink/plugins' autoload :Plugin, 'octopress-ink/plugin' autoload :Tags, 'octopress-ink/tags' autoload :StylesheetsPlugin, 'octopress-ink/plugins/stylesheets' def self.register_plugin(plugin, name, type='plugin') Plugins.register_plugin(plugin, name, type) end + + def self.version + version = "Jekyll v#{Jekyll::VERSION}, " + if defined? Octopress::VERSION + version << "Octopress v#{Octopress::VERSION} " + end + version << "Octopress Ink v#{Octopress::Ink::VERSION}" + end + end Liquid::Template.register_filter Octopress::Filters Liquid::Template.register_tag('include', Octopress::Tags::IncludeTag) Liquid::Template.register_tag('assign', Octopress::Tags::AssignTag) Liquid::Template.register_tag('capture', Octopress::Tags::CaptureTag) Liquid::Template.register_tag('return', Octopress::Tags::ReturnTag) +Liquid::Template.register_tag('filter', Octopress::Tags::FilterTag) Liquid::Template.register_tag('render', Octopress::Tags::RenderTag) Liquid::Template.register_tag('octopress_js', Octopress::Tags::JavascriptTag) Liquid::Template.register_tag('octopress_css', Octopress::Tags::StylesheetTag) Liquid::Template.register_tag('content_for', Octopress::Tags::ContentForTag) Liquid::Template.register_tag('yield', Octopress::Tags::YieldTag) Liquid::Template.register_tag('wrap', Octopress::Tags::WrapTag) +Liquid::Template.register_tag('abort', Octopress::Tags::AbortTag) Liquid::Template.register_tag('_', Octopress::Tags::LineCommentTag) Octopress.register_plugin(Octopress::StylesheetsPlugin, 'user stylesheets', 'local_plugin')