Render a template for typeahead (fixes #21)