Skip to content
Myr

updated docs

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Tj Holowaychuk · committed by Tj Holowaychuk · parent af6385f · Browse files · 3 files+31 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+31 added−8 removed

  • other:+31 added−8 removed

3 files+31 added−8 removed

modified:docs/guide.html+13 added
200 unmodified lines
201<li><a href="#req.header()">header()</a></li>202<li><a href="#req.accepts()">accepts()</a></li>203<li><a href="#req.is()">is()</a></li>204<li><a href="#req.param()">param()</a></li>205<li><a href="#req.get()">get()</a></li>206<li><a href="#req.flash()">flash()</a></li>207<li><a href="#req.isxmlhttprequest">isXMLHttpRequest</a></li>208</ul></li>209<li><a href="#" class="toggle">+</a> <a class="section-title" href="#">Response</a><ul class="section" id="section-Response">
872 unmodified lines
1082<p>To utilize urlencoded request bodies, <em>req.body</em>1083should be an object. This can be done by using1084the _express.bodyParser middleware.</p>10851086<h3 id="req.get()">req.get(field, param)</h3>10871088<p> Get <em>field</em>&rsquo;s <em>param</em> value, defaulting to &lsquo;&rsquo; when the <em>param</em>1089 or <em>field</em> is not present.</p>10901091<pre><code> req.get('content-disposition', 'filename');1092 // =&gt; "something.png"10931094 req.get('Content-Type', 'boundary');1095 // =&gt; "--foo-bar-baz"1096</code></pre>10971098<h3 id="req.flash()">req.flash(type[, msg])</h3>10991100<p>Queue flash <em>msg</em> of the given <em>type</em>.</p>1101
703 unmodified lines
modified:docs/index.html+16 added-6 removed
237 unmodified lines
238<li><a href="http://github.com/visionmedia/express-resource">express-resource</a> provides resourceful routing</li>239<li><a href="http://github.com/visionmedia/express-messages">express-messages</a> flash message notification rendering</li>240<li><a href="http://github.com/visionmedia/express-configuration">express-configure</a> async configuration support (load settings from redis etc)</li>241<li><a href="http://github.com/visionmedia/express-namespace">express-namespace</a> namespaced routing support</li>242<li><a href="http://github.com/visionmedia/express-expose">express-expose</a> expose</li>243<li><a href="https://github.com/visionmedia/express-params">express-params</a> param</li>244<li><a href="https://github.com/LearnBoost/express-mongoose">express-mongoose</a> plugin</li>245</ul>246247248<h2>More Information</h2>249250<ul>248<li><a href="http://groups.google.com/group/express-js">Google Group</a> for discussion</li>251<li><h1>express on freenode</h1>252253<p>objects, functions, modules and more to client-side js with ease254namespaced route support255pre-condition functions256for easy rendering of Mongoose async Query results</p></li>257<li>Follow <a href="http://twitter.com/tjholowaychuk">tjholowaychuk</a> on twitter for updates</li>250<li>View the <a href="http://senchalabs.github.com/connect">Connect</a> documentation</li>251<li>View the <a href="http://wiki.github.com/senchalabs/connect/">Connect Wiki</a> for contrib middleware</li>252<li>View the <a href="http://github.com/visionmedia/express/tree/master/examples/">examples</a></li>253<li>View the <a href="http://github.com/visionmedia/express">source</a></li>254<li>View the <a href="contrib.html">contrib guide</a></li>258<li><a href="http://groups.google.com/group/express-js">Google Group</a> for discussion</li>259<li>Visit the <a href="http://github.com/visionmedia/express/wiki">Wiki</a></li>260<li><a href="http://hideyukisaito.com/doc/expressjs/">日本語ドキュメンテーション</a> by <a href="https://github.com/hideyukisaito">hideyukisaito</a></li>261<li>Screencast &ndash; <a href="http://bit.ly/eRYu0O">Introduction</a></li>262<li>Screencast &ndash; <a href="http://bit.ly/dU13Fx">View Partials</a></li>263<li>Screencast &ndash; <a href="http://bit.ly/hX4IaH">Route Specific Middleware</a></li>264<li>Screencast &ndash; <a href="http://bit.ly/eNqmVs">Route Path Placeholder Preconditions</a></li>265</ul>266267 </div>268 </div>
2 unmodified lines
modified:docs/migrate.html+2 added-2 removed
324 unmodified lines
325</code></pre>326327<h3>partial() locals</h3>328329<p> Both <em>res.partial()</em> and the <em>partial()</em> functions accept an single object consisting of both the options and the locals. Previously with Express 1.x you may pass <em>user</em> to a partial, along with <em>date</em> like so:</p>329<p> Both <em>res.partial()</em> and the <em>partial()</em> functions accept a single object consisting of both the options and the locals. Previously with Express 1.x you may pass <em>user</em> to a partial, along with <em>date</em> like so:</p>330331<pre><code> partial('user', { object: user, locals: { date: new Date }})332</code></pre>333
32 unmodified lines
366</code></pre>367368<h3>View Partial Lookup</h3>369370<p> Previously partials were loaded relative to the now removed <em>view partials</em> directory setting, or by default <em>views/partials</em>, now they are relative to the view calling them, read more on <a href="guide.html#View-Lookup">view lookup</a>.</p>370<p> Previously partials were loaded relative to the now removed <em>view partials</em> directory setting, or by default <em>views/partials</em>, now they are relative to the view calling them, read more on <a href="guide.html#view-lookup">view lookup</a>.</p>371372<h3>Mime Types</h3>373374<p> Express and Connect now utilize the <em>mime</em> module in npm, so to add more use:</p>
19 unmodified lines