Issue #1993312 by damiankloip, tim.plunkett: Change pre_render(), post_render(), and after_build() callbacks to accept callables.