api.versionsFrom

package.js api.versionsFrom(meteorRelease) Use versions of core packages from a release. Unless provided, all packages will default to the versions released along with meteorRelease. This will save you from having to figure out the exact versions of the core packages you want to use. For example, if the newest release of meteor is METEOR@0.9.0 and it includes jquery@1.0.0, you can write api.versionsFrom('METEOR@0.9.0') in your package, and when you later write api.use('jquery'), it will b

Blaze.renderWithData

Client Blaze.renderWithData(templateOrView, data, parentNode, [nextNode], [parentView]) import { Blaze } from 'meteor/blaze' Source Renders a template or View to DOM nodes with a data context. Otherwise identical to Blaze.render. Arguments templateOrView Blaze.Template or Blaze.View The template (e.g. Template.myTemplate) or View object to render. data Object or Function The data context to use, or a function returning a data context. If a function is provided, it will be reactiv

meteor run

meteor run Run a meteor development server in the current project. Searches upward from the current directory for the root directory of a Meteor project. Whenever you change any of the application's source files, the changes are automatically detected and applied to the running application. You can use the application by pointing your web browser at localhost:3000. No Internet connection is required. This is the default command. Simply running meteor is the same as meteor run. To pass additiona

EJSON.equals

Anywhere EJSON.equals(a, b, [options]) import { EJSON } from 'meteor/ejson' Source Return true if a and b are equal to each other. Return false otherwise. Uses the equals method on a if present, otherwise performs a deep comparison. Arguments a EJSON-able Object b EJSON-able Object Options keyOrderSensitive Boolean Compare in key sensitive order, if supported by the JavaScript implementation. For example, {a: 1, b: 2} is equal to {b: 2, a: 1} only when keyOrderSensitive is fa

Tracker.afterFlush

Client Tracker.afterFlush(callback) import { Tracker } from 'meteor/tracker' Source Schedules a function to be called during the next flush, or later in the current flush if one is in progress, after all invalidated computations have been rerun. The function will be run once and not on subsequent flushes unless afterFlush is called again. Arguments callback Function A function to call at flush time.

meteor deploy

meteor deploy site Deploy the project in your current directory to Galaxy. You can deploy in debug mode by passing --debug. This will leave your source code readable by your favorite in-browser debugger, just like it is in local development mode. To delete an application you've deployed, specify the --delete option along with the site. You can add information specific to a particular deployment of your application by using the --settings option. The argument to --settings is a file containing

Meteor.loginWithPassword

Client Meteor.loginWithPassword(user, password, [callback]) import { Meteor } from 'meteor/meteor' Source Log the user in with a password. Arguments user Object or String Either a string interpreted as a username or an email; or an object with a single key: email, username or id. Username or email match in a case insensitive manner. password String The user's password. callback Function Optional callback. Called with no arguments on success, or with a single Error argument on

Blaze.toHTML

Client Blaze.toHTML(templateOrView) import { Blaze } from 'meteor/blaze' Source Renders a template or View to a string of HTML. Arguments templateOrView Blaze.Template or Blaze.View The template (e.g. Template.myTemplate) or View object from which to generate HTML.

EJSON.clone

Anywhere EJSON.clone(val) import { EJSON } from 'meteor/ejson' Source Return a deep copy of val. Arguments val EJSON-able Object A value to copy.

Template.currentData

Client Template.currentData() import { Template } from 'meteor/templating' Source Inside an onCreated, onRendered, or onDestroyed callback, returns the data context of the template. Inside an event handler, returns the data context of the template on which this event handler was defined. Inside a helper, returns the data context of the DOM node where the helper was used. Establishes a reactive dependency on the result.