Created
August 7, 2018 19:28
-
-
Save searls/baf47cc5bf312b2eb27ea16a99c06beb to your computer and use it in GitHub Desktop.
Stick this in your _plugins
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 | |
module PryFilter | |
# Usage: {{ site | pry }} to debug the state of the site from the terminal | |
def pry(input) | |
require 'pry' | |
binding.pry | |
end | |
end | |
end | |
Liquid::Template.register_filter(Jekyll::PryFilter) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment