This file contains hidden or 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.gem_view.context = function() { | |
return { | |
contentTemplate: "gems" | |
}; | |
}; | |
Template.page.render_content = function() { | |
var context = this; | |
var html = Template.no_template_found; | |
if (context && context.contentTemplate) { |
This file contains hidden or 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
//Available on Client and Server and is a managed collection | |
Vehicles = new Meteor.Collection('vehicles'); | |
if(Meteor.isServer){ | |
Meteor.publish('cars', function () { | |
var cursor = Vehicles.find({type:"car"}); | |
var subscription = this; | |
var handle = cursor.observe({ | |
added: function (document) { |
This file contains hidden or 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.templateName._tmpl_data.events["event selector"]).each(function(eventName){ | |
eventName.call(self, event); | |
}); |
This file contains hidden or 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
Mesosphere.registerRule("exactChecked", function(fieldValue, ruleValue, fieldName, formFieldsObject, fieldRequirements){ | |
if(_(formFieldsObject[fieldName]).isArray() && formFieldsObject[fieldName].length == ruleValue){ | |
return true; | |
} | |
return false; | |
}); |
NewerOlder