A jinja extention to define block at runtime