middleman/middleman-core
Ben Hollis 3bdbc11db2 Change the behavior of before_render and after_render hooks from #761.
This changes the before_render and after_render hooks so that the callbacks
given to them each get to modify the template source / the rendered output
in turn, instead of having to modify them in-place. It also changes the arguments
provided to the callbacks - now, they are given the source/output, the template path,
the locals hash, and the Tilt template *class*, wheras previously they were given the source/output
and the Tilt template *instance*. The locals hash is there in case pron case hooks want to
pay attention to the locals in some way. The before_render hook is also run before
compiling the template and caching it, which should prevent weird data mismatches
and save some template compilation effort.
2013-02-10 15:18:57 -08:00
..
bin Stop messing with load path in middleman executable 2012-09-15 18:45:14 -07:00
features also "build" .htpasswd files 2013-01-21 11:21:48 -08:00
fixtures also "build" .htpasswd files 2013-01-21 11:21:48 -08:00
lib Change the behavior of before_render and after_render hooks from #761. 2013-02-10 15:18:57 -08:00
spec Add a spec for testing Middleman::Util#binary? 2013-02-09 15:49:10 -08:00
.cane Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
.cane-exclusions.yml Clean up whitespace, play with cane for testing style quality and code complexity 2012-08-13 15:41:07 -07:00
.gemtest enable gemtest at a per-gem level 2012-01-02 14:48:47 -08:00
middleman-core-x86-mingw32.gemspec Fix gemspecs 2013-02-09 10:28:55 -08:00
middleman-core.gemspec Fix gemspecs 2013-02-09 10:28:55 -08:00
Rakefile The return of the windows gem, for wdm and speedier file watching support 2012-09-01 08:44:02 -07:00