module Middleman::Renderers::Liquid
Liquid
Renderer
Public Class Methods
registered(app)
click to toggle source
Once registerd
# File lib/middleman-core/renderers/liquid.rb, line 14 def registered(app) app.before_configuration do template_extensions :liquid => :html end # After config, setup liquid partial paths app.after_configuration do ::Liquid::Template.file_system = ::Liquid::LocalFileSystem.new(source_dir) # Convert data object into a hash for liquid sitemap.provides_metadata %r{\.liquid$} do |path| { :locals => { :data => data.to_h } } end end end
Also aliased as: included