lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.24 vs lib/octopress-ink.rb in octopress-ink-1.0.0.alpha.25
- old
+ new
@@ -4,15 +4,17 @@
require 'octopress-ink/version'
require 'octopress-ink/generators/plugin_assets'
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 :Plugins, 'octopress-ink/plugins'
autoload :Plugin, 'octopress-ink/plugin'
@@ -22,10 +24,12 @@
def self.register_plugin(plugin, name, type='plugin')
Plugins.register_plugin(plugin, name, type)
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('render', Octopress::Tags::RenderTag)
@@ -37,8 +41,9 @@
Liquid::Template.register_tag('scripts', Octopress::Tags::ScriptsBlock)
Liquid::Template.register_tag('yield', Octopress::Tags::YieldTag)
Liquid::Template.register_tag('wrap_yield', Octopress::Tags::WrapTag)
Liquid::Template.register_tag('wrap_render', Octopress::Tags::WrapTag)
Liquid::Template.register_tag('wrap', Octopress::Tags::WrapTag)
+Liquid::Template.register_tag('_', Octopress::Tags::LineCommentTag)
Octopress.register_plugin(Octopress::StylesheetsPlugin, 'user stylesheets', 'local_plugin')