Render current query in html template