first pass on html rendering via jinja, support for query (cdx) rendering