feat(options): add beforeRender and afterRender options