Add beforeRender() method
Auto setting template file
Add docs