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.

spiderable

Your JavaScript code can run in two environments: the client (browser), and the server (a Node.js container on a server). For each function in this API reference, we'll indicate if the function is available just on the client, just on the server, or Anywhere. Meteor Core Anywhere Meteor.isClient import { Meteor } from 'meteor/meteor' Source Boolean variable. True if running in client environment. Anywhere Meteor.isServer import { Meteor } from 'meteor/meteor' Source Boolean va

Blaze.getData

Client Blaze.getData([elementOrView]) import { Blaze } from 'meteor/blaze' Source Returns the current data context, or the data context that was used when rendering a particular DOM element or View from a Meteor template. Arguments elementOrView DOM Element or Blaze.View Optional. An element that was rendered by a Meteor, or a View.

random

random The random package provides several functions for generating random numbers. It uses a cryptographically strong pseudorandom number generator when possible, but falls back to a weaker random number generator when cryptographically strong randomness is not available (on older browsers or on servers that don't have enough entropy to seed the cryptographically strong generator). Random.id([n]) Returns a unique identifier, such as "Jjwjg6gouWLXhMGKW", that is likely to be unique in the whol

Package.describe

Package Description Provide basic package information with Package.describe(options). To publish a package, you must define summary and version. package.js Package.describe(options) Provide basic package information. Options summary String A concise 1-2 sentence description of the package, required for publication. version String The (extended) semver version for your package. Additionally, Meteor allows a wrap number: a positive integer that follows the version number. If you a

Meteor.subscribe

Client Meteor.subscribe(name, [arg1, arg2...], [callbacks]) import { Meteor } from 'meteor/meteor' Source Subscribe to a record set. Returns a handle that provides stop() and ready() methods. Arguments name String Name of the subscription. Matches the name of the server's publish() call. arg1, arg2... EJSON-able Object Optional arguments passed to publisher function on server. callbacks Function or Object Optional. May include onStop and onReady callbacks. If there is an erro

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

Session.equals

Client Session.equals(key, value) import { Session } from 'meteor/session' Source Test if a session variable is equal to a value. If inside a reactive computation, invalidate the computation the next time the variable changes to or from the value. Arguments key String The name of the session variable to test value String, Number, Boolean, null, or undefined The value to test against

Accounts.sendResetPasswordEmail

Server Accounts.sendResetPasswordEmail(userId, [email]) import { Accounts } from 'meteor/accounts-base' Source Send an email with a link the user can use to reset their password. Arguments userId String The id of the user to send email to. email String Optional. Which address of the user's to send the email to. This address must be in the user's emails list. Defaults to the first email in the list.

Renderable content

Renderable Content A value is renderable content if it is one of the following: A template object like Template.myTemplate An unrendered View object, like the return value of Blaze.With null or undefined Internally, renderable content includes objects representing HTML tags as well, but these objects are not yet part of the officially-supported, public API.