Added `render_template` method