Skip to content

Instantly share code, notes, and snippets.

@czbaker
Created March 11, 2015 14:00
Show Gist options
  • Select an option

  • Save czbaker/016957790e8dd0f657c3 to your computer and use it in GitHub Desktop.

Select an option

Save czbaker/016957790e8dd0f657c3 to your computer and use it in GitHub Desktop.
Search and Helper
{
"name" : "WASDnation",
"desc" : "We rock!",
"url" : "http://wasdnation.com",
"tags" : [
"wow",
" csgo",
" casual"
],
"ranks" : [
{
"order" : 1,
"name" : "Leader"
},
{
"order" : 2,
"name" : "Officer"
},
{
"order" : 3,
"name" : "Member"
}
],
"roster" : [
{
"user" : "EP9CNsMSxe3BZHBar",
"rank" : 1
}
],
"_id" : "Qt8RjmxymTC7m6C3E"
}
<template name="groups-search">
<section class="col-md-offset-3 col-md-6">
<h3>Group Search:</h3>
{{> esInput index="groups" placeholder="Search..." class="form-control"}}
{{#esEach index="groups"}}
<section class="groupResult">
<h4>{{name}}</h4>
<ul>
<li>About: {{desc}}</li>
<li>Tags: {{tags}}</li>
<li>Members: {{getMembers}}</li>
</ul>
</section>
{{/esEach}}
</section>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment