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.

reactiveVar.set

Client reactiveVar.set(newValue) Source Sets the current value of the ReactiveVar, invalidating the Computations that called get if newValue is different from the old value. Arguments newValue Any

ReactiveVar

Client new ReactiveVar(initialValue, [equalsFunc]) import { ReactiveVar } from 'meteor/reactive-var' Source Constructor for a ReactiveVar, which represents a single reactive variable. Arguments initialValue Any The initial value to set. equalsFunc is ignored when setting the initial value. equalsFunc Function Optional. A function of two arguments, called on the old value and the new value whenever the ReactiveVar is set. If it returns true, no set is performed. If omitted, the de

React

After reading this guide, you’ll know: What React is, and why you would consider using it with Meteor. How to install React in your Meteor application, and how to use it correctly. How to integrate React with Meteor’s realtime data layer. How to route in a React/Meteor application. Introduction React is a JavaScript library for building reactive user interfaces developed and distributed by the Facebook team. React is one of the three rendering libraries supported by Meteor; it is an alterativ

reactiveVar.get

Client reactiveVar.get() Source Returns the current value of the ReactiveVar, establishing a reactive dependency.

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

Publications and Data Loading

After reading this guide, you’ll know: What publications and subscriptions are in the Meteor platform. How to define a publication on the server. Where to subscribe on the client and in which templates. Useful patterns for managing subscriptions. How to reactively publish related data. How to ensure your publication is secure in the face of reactive changes. How to use the low-level publish API to publish anything. What happens when you subscribe to a publication. How to turn a 3rd-party REST e

Plugin.registerSourceHandler

Build Plugin Plugin.registerSourceHandler(fileExtension, handler) Inside a build plugin source file specified in Package.registerBuildPlugin, add a handler to compile files with a certain file extension. Arguments fileExtension String The file extension that this plugin should handle, without the first dot. Examples: "coffee", "coffee.md". handler Function A function that takes one argument, a CompileStep object. Documentation for CompileStep is available on the GitHub Wiki.

Package.registerBuildPlugin

package.js Package.registerBuildPlugin([options]) Define a build plugin. A build plugin extends the build process for apps and packages that use this package. For example, the coffeescript package uses a build plugin to compile CoffeeScript source files into JavaScript. Options name String A cosmetic name, must be unique in the package. use String or Array of Strings Meteor packages that this plugin uses, independent of the packages specified in api.onUse. sources Array of Strin

Package.onUse

Package Definition Define dependencies and expose package methods with the Package.onUse handler. This section lets you define what packages your package depends on, what packages are implied by your package, and what object your package is exported to. package.js Package.onUse(func) Define package dependencies and expose package methods. Arguments func Function A function that takes in the package control api object, which keeps track of dependencies and exports. package.js