Skip to content

Instantly share code, notes, and snippets.

View lamalex's full-sized avatar

Alex Launi lamalex

View GitHub Profile
Handlebars.registerHelper('isYoutubeIframe', function (type) {
return type == "youtube/iframe";
});
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/
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 '<':
extends layout
block body
div
div(ng-controller="BrassCanklesController")
h2 PAST
div(ng-repeat="video in videos")
!= {{video.content}}
div(ng-view)
h2 PRESENT
extends layout
block body
div
div(ng-controller="BrassCanklesController")
h2 PAST
div(ng-repeat="video in videos")
| {{video.content}}
div(ng-view)
h2 PRESENT