added example usage for BeforeRender and note on 

using context in %inherit statements