Change the statement from genshi to jinja2