Skip to content

Commit

Permalink
install docs
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Apr 8, 2011
1 parent 15baadc commit 4aa71bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Readme.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@


Expose helpers and local variables to the client-side Expose helpers and local variables to the client-side


## Installation

$ npm install express-expose

## Usage

var express = require('express')
, expose = require('expose');

app.expose(...);

## Examples ## Examples


A common use-case for exposing objects to the client-side would be exposing some properties, perhaps the express configuration. The call to `app.expose(obj)` below defaults to exposing the properties to `express.*`, so for example `express.views`, `express.title`, etc. A common use-case for exposing objects to the client-side would be exposing some properties, perhaps the express configuration. The call to `app.expose(obj)` below defaults to exposing the properties to `express.*`, so for example `express.views`, `express.title`, etc.
Expand Down

0 comments on commit 4aa71bb

Please sign in to comment.