Sha256: 9bcf59e96c2563297a478e01fa9418e959ce810f072a33d2596bfe90aa7c80bf
Contents?: true
Size: 767 Bytes
Versions: 4
Compression:
Stored size: 767 Bytes
Contents
# Require Gem require 'liquid' module Middleman module Renderers # Liquid Renderer module Liquid # Setup extension class << self # Once registerd 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 alias :included :registered end end end end
Version data entries
4 entries across 4 versions & 1 rubygems