Last active
October 7, 2017 04:01
-
-
Save insightcoder/cf095a59a785901931b9ace1a34cca26 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script id="results-template" type="text/x-handlebars-template"> | |
<div class="match_count"> | |
Matches found for | |
<span class="search-term">"{{search_term}}"</span> | |
<span class="badge">{{num_results}}</span> | |
</div> | |
{{#if has_results}} {{#each results}} | |
<ul class="list-group"> | |
<li class="list-group-item list-group-item-success definition-header">{{@key}}</li> | |
{{#each this}} | |
<li class="list-group-item definition">{{formatDefinition this}}</li> | |
{{/each}} | |
</ul> | |
{{/each}} {{else}} | |
<ul class="list-group"> | |
<li class="list-group-item list-group-item-danger no-definition"> | |
Nope. Not a word. | |
</li> | |
</ul> | |
{{/if}} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment