add liquid to front matter aware templates
This commit is contained in:
parent
d83f2b72dc
commit
a5cc87d247
1 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,9 @@ module Middleman::CoreExtensions::FrontMatter
|
|||
::Tilt::register ERBTemplate, 'erb', 'rhtml'
|
||||
::Tilt.prefer(ERBTemplate)
|
||||
|
||||
::Tilt::register LiquidTemplate, 'liquid'
|
||||
::Tilt.prefer(LiquidTemplate)
|
||||
|
||||
::Tilt::register SlimTemplate, 'slim'
|
||||
::Tilt.prefer(SlimTemplate)
|
||||
|
||||
|
@ -102,6 +105,10 @@ module Middleman::CoreExtensions::FrontMatter
|
|||
include Middleman::CoreExtensions::FrontMatter::YamlAware
|
||||
end
|
||||
|
||||
class LiquidTemplate < ::Tilt::LiquidTemplate
|
||||
include Middleman::CoreExtensions::FrontMatter::YamlAware
|
||||
end
|
||||
|
||||
class HamlTemplate < ::Tilt::HamlTemplate
|
||||
include Middleman::CoreExtensions::FrontMatter::YamlAware
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue