Hack a way to pass Middleman context into Slim filters

This commit is contained in:
Thomas Reynolds 2012-08-16 13:48:34 -07:00
parent 8e7041994f
commit 54c055ea5e
6 changed files with 79 additions and 13 deletions

View file

@ -223,7 +223,7 @@ module Middleman
# messages, which can take a long time (minutes at full CPU)
# if the object is huge or has cyclic references, like this.
def to_s
"the Middleman application context"
"#<Middleman::Application>"
end
# Expand a path to include the index file if it's a directory