Last active
August 29, 2015 14:03
-
-
Save jakobdamjensen/14a2efeda30ed60e6b22 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
<template name="hello"> | |
<input type="file" id="file"/> | |
<ul class="file-list"> | |
{{#each files}} | |
<li> | |
{{#if isUploaded}} | |
<img src="{{url}}"/> | |
{{/if}} | |
</li> | |
{{/each}} | |
</ul> | |
</template> |
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
Template.hello.helpers({ | |
files: function(){ | |
return Images.find({}, {sort: {uploadedAt: -1}}); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment