Sha256: 96593fce13bc5b6c6c125b1812941128c96da5959d6e58c266622523f52ee144
Contents?: true
Size: 778 Bytes
Versions: 1
Compression:
Stored size: 778 Bytes
Contents
module Jekyll class Layout # path is required # Also related to https://github.com/mojombo/jekyll/issues/225 def path @name end # Allows layouts to be transformed by slim until this is fixed (1.4) # https://github.com/mojombo/jekyll/issues/225 # https://github.com/mojombo/jekyll/blob/master/lib/jekyll/layout.rb alias old_initialize initialize def initialize(*args) old_initialize(*args) transform end def to_liquid data.merge(name: name, content: content) end end module Convertible class<< self attr_accessor :slim_current_convertible end alias old_transform transform def transform Convertible.slim_current_convertible = self old_transform end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jekyll-slim-0.10.0 | lib/jekyll/slim/extensions.rb |