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
<!--Whole application shares this markup: --> | |
<body> | |
<ul id="nav"> | |
<li>Home</li> | |
<li>Other Page</li> | |
</ul> | |
<div id="content"></div> | |
</body> | |
<!-- Home Page 'focus' --> |
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 utilities | |
// making Meteor's template api a bit less, well, awful | |
//============================================================================== | |
define([ | |
"lib/ext" | |
], | |
function(ext){ | |
"use strict"; |
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
Posts.find({}, { | |
fields: { | |
upvoters: { | |
$elemMatch: { | |
id: userId //userId is the current user's id. | |
} | |
} | |
} | |
}); |
NewerOlder