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
extends layout | |
block body | |
div | |
div(ng-controller="BrassCanklesController") | |
h2 PAST | |
div(ng-repeat="video in videos") | |
| {{video.content}} | |
div(ng-view) | |
h2 PRESENT |
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
extends layout | |
block body | |
div | |
div(ng-controller="BrassCanklesController") | |
h2 PAST | |
div(ng-repeat="video in videos") | |
!= {{video.content}} | |
div(ng-view) | |
h2 PRESENT |
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
Handlebars.registerHelper('ifCond', function (v1, operator, v2, options) { | |
switch (operator) { | |
case '==': | |
return (v1 == v2) ? options.fn(this) : options.inverse(this); | |
break; | |
case '===': | |
return (v1 === v2) ? options.fn(this) : options.inverse(this); | |
break; | |
case '<': |
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
Exception while bundling application: | |
Error: Parse error on line 3: | |
...t"> {{#ifCond 1 === 1}} <a href | |
----------------------^ | |
Expecting 'CLOSE', 'DATA', 'STRING', 'INTEGER', 'BOOLEAN', 'ID', got 'EQUALS' | |
at Object.parseError (/Users/alexlauni/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/handlebars/lib/handlebars/compiler/parser.js:103:11) | |
at Object.parse (/Users/alexlauni/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/handlebars/lib/handlebars/compiler/parser.js:155:22) | |
at Object.Handlebars.parse (/Users/alexlauni/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/dev_bundle/lib/node_modules/handlebars/lib/handlebars/compiler/base.js:9:28) | |
at Object.Handlebars.to_json_ast (/Users/alexlauni/.meteorite/meteors/meteor/meteor/5d736d4bf0448c7db1f9b47124dfafc34a9631bb/packages/handlebars/parse.js:40:31) | |
at Object.html_scanner._handleTag (/Users/alexlauni/ |
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
Handlebars.registerHelper('isYoutubeIframe', function (type) { | |
return type == "youtube/iframe"; | |
}); |
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
Meteor.Router.add({ | |
'/': 'relicsList', | |
'/:_id': { | |
to: 'relicPage', | |
and: function(id) { Session.set('currentRelicId', id); } | |
}, | |
'/new': 'newRelic' | |
}); |
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.relicsPast.helpers({ | |
relics: function() { | |
return Relics.find({datestamp: {$lt: getYesterday() }}, {limit: pastRelicsHandle.limit()}); | |
}, | |
relicsReady: function() { | |
console.log(pastRelicsHandle.loading()); | |
return !pastRelicsHandle.loading(); | |
}, | |
allRelicsLoaded: function() { | |
return !pastRelicsHandle.loading() && Relics.find({datestamp: {$lt: getYesterday()}}).count() < pastRelicsHandle.loaded(); |
OlderNewer