diff options
Diffstat (limited to 'client/config')
-rw-r--r-- | client/config/helpers.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/config/helpers.js b/client/config/helpers.js new file mode 100644 index 00000000..01a28f9b --- /dev/null +++ b/client/config/helpers.js @@ -0,0 +1,6 @@ +Blaze.registerHelper('currentCard', function() { + var cardId = Session.get('currentCard'); + if (cardId) { + return Cards.findOne(cardId); + } +}); |