add liquid to front matter aware templates

This commit is contained in:
Thomas Reynolds 2011-09-03 10:23:04 -07:00
parent d83f2b72dc
commit a5cc87d247

View file

@ -18,6 +18,9 @@ module Middleman::CoreExtensions::FrontMatter
::Tilt::register ERBTemplate, 'erb', 'rhtml' ::Tilt::register ERBTemplate, 'erb', 'rhtml'
::Tilt.prefer(ERBTemplate) ::Tilt.prefer(ERBTemplate)
::Tilt::register LiquidTemplate, 'liquid'
::Tilt.prefer(LiquidTemplate)
::Tilt::register SlimTemplate, 'slim' ::Tilt::register SlimTemplate, 'slim'
::Tilt.prefer(SlimTemplate) ::Tilt.prefer(SlimTemplate)
@ -102,6 +105,10 @@ module Middleman::CoreExtensions::FrontMatter
include Middleman::CoreExtensions::FrontMatter::YamlAware include Middleman::CoreExtensions::FrontMatter::YamlAware
end end
class LiquidTemplate < ::Tilt::LiquidTemplate
include Middleman::CoreExtensions::FrontMatter::YamlAware
end
class HamlTemplate < ::Tilt::HamlTemplate class HamlTemplate < ::Tilt::HamlTemplate
include Middleman::CoreExtensions::FrontMatter::YamlAware include Middleman::CoreExtensions::FrontMatter::YamlAware
end end