Skip to content

Instantly share code, notes, and snippets.

Created February 27, 2014 13:41
Show Gist options
  • Save anonymous/9250177 to your computer and use it in GitHub Desktop.
Save anonymous/9250177 to your computer and use it in GitHub Desktop.
<head>
<title>ffff</title>
</head>
<body>
<h1>ffff</h1>
{{> welcome }}
{{> persons }}
</body>
<template name="welcome">
<p>
Hello.
</p>
</template>
<template name="persons">
{{-- Session.set("whatever", 1)}}
{{#each persons(1)}}
<strong>@{{twitter}}:</strong>
{{/each}}
</template>
Copy link

ghost commented Feb 27, 2014

Template.persons.persons = function (whatever) {
return Persons.find({}, { sort: { time: -1 }});
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment