From 652e16646299589bb496ccf914e041883a79ce9f Mon Sep 17 00:00:00 2001 From: Tj Holowaychuk Date: Tue, 21 Jun 2011 15:08:17 -0700 Subject: [PATCH] updated docs --- docs/guide.html | 13 +++++++++++++ docs/index.html | 22 ++++++++++++++++------ docs/migrate.html | 4 ++-- 3 files changed, 31 insertions(+), 8 deletions(-) diff --git a/docs/guide.html b/docs/guide.html index e335824fe1..7f1c61a77d 100644 --- a/docs/guide.html +++ b/docs/guide.html @@ -202,6 +202,7 @@
  • accepts()
  • is()
  • param()
  • +
  • get()
  • flash()
  • isXMLHttpRequest
  • @@ -1082,6 +1083,18 @@

    req.param(name[, default])

    should be an object. This can be done by using the _express.bodyParser middleware.

    +

    req.get(field, param)

    + +

    Get field’s param value, defaulting to ‘’ when the param + or field is not present.

    + +
     req.get('content-disposition', 'filename');
    + // => "something.png"
    +
    + req.get('Content-Type', 'boundary');
    + // => "--foo-bar-baz"
    +
    +

    req.flash(type[, msg])

    Queue flash msg of the given type.

    diff --git a/docs/index.html b/docs/index.html index 85ba93769b..8d66b5f07f 100644 --- a/docs/index.html +++ b/docs/index.html @@ -239,19 +239,29 @@

    Third-Party Modules

  • express-messages flash message notification rendering
  • express-configure async configuration support (load settings from redis etc)
  • express-namespace namespaced routing support
  • +
  • express-expose expose
  • +
  • express-params param
  • +
  • express-mongoose plugin
  • More Information

    diff --git a/docs/migrate.html b/docs/migrate.html index c95c7ff5a1..67b9dcbabc 100644 --- a/docs/migrate.html +++ b/docs/migrate.html @@ -326,7 +326,7 @@

    res.partial()

    partial() locals

    -

    Both res.partial() and the partial() functions accept an single object consisting of both the options and the locals. Previously with Express 1.x you may pass user to a partial, along with date like so:

    +

    Both res.partial() and the partial() functions accept a single object consisting of both the options and the locals. Previously with Express 1.x you may pass user to a partial, along with date like so:

       partial('user', { object: user, locals: { date: new Date }})
     
    @@ -367,7 +367,7 @@

    Template Engine Compliance

    View Partial Lookup

    -

    Previously partials were loaded relative to the now removed view partials directory setting, or by default views/partials, now they are relative to the view calling them, read more on view lookup.

    +

    Previously partials were loaded relative to the now removed view partials directory setting, or by default views/partials, now they are relative to the view calling them, read more on view lookup.

    Mime Types