Added jinja2 and use base class properties to render templates.