Created
December 13, 2011 15:55
-
-
Save mildred/1472645 to your computer and use it in GitHub Desktop.
Jekyll plugin to have layouts transformed by Converters as well, taken from https://github.com/mojombo/jekyll/pull/351
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class Layout | |
alias old_initialize initialize | |
def initialize(*args) | |
old_initialize(*args) | |
self.transform | |
end | |
end | |
end |
I get:
jekyll 2.5.3 | Error: undefined local variable or method `path' for #<Jekyll::Layout:0x00000000b803a8>
With this.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
replace
with
on jekyll 2.3+
jekyll/jekyll#2961 (comment)