Add HTML tag matching to jinja