add optional jinja2 support
merge version 0.3