Modified cleantyper with Jinja2, for pelican support