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
Provenance
- Commit
652e166- Tree
a4454b8- Author
Tj Holowaychuk <tj@vision-media.ca>- Committer
Tj Holowaychuk <tj@vision-media.ca>- Parent
af6385f
3 files changed+31 added−8 removed
modified:docs/guide.html+13 added
200 unmodified lines201 <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 lines1082 <p>To utilize urlencoded request bodies, <em>req.body</em>1083 should be an object. This can be done by using1084 the _express.bodyParser middleware.</p>1085 1086+<h3 id="req.get()">req.get(field, param)</h3>1087+1088+<p> Get <em>field</em>’s <em>param</em> value, defaulting to ‘’ when the <em>param</em>1089+ or <em>field</em> is not present.</p>1090+1091+<pre><code> req.get('content-disposition', 'filename');1092+ // => "something.png"1093+1094+ req.get('Content-Type', 'boundary');1095+ // => "--foo-bar-baz"1096+</code></pre>1097+1098 <h3 id="req.flash()">req.flash(type[, msg])</h3>1099 1100 <p>Queue flash <em>msg</em> of the given <em>type</em>.</p>1101 703 unmodified linesmodified:docs/index.html+16 added-6 removed
237 unmodified lines238 <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>246 247 248 <h2>More Information</h2>249 250 <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>252+253+<p>objects, functions, modules and more to client-side js with ease254+namespaced route support255+pre-condition functions256+for 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 – <a href="http://bit.ly/eRYu0O">Introduction</a></li>262+<li>Screencast – <a href="http://bit.ly/dU13Fx">View Partials</a></li>263+<li>Screencast – <a href="http://bit.ly/hX4IaH">Route Specific Middleware</a></li>264+<li>Screencast – <a href="http://bit.ly/eNqmVs">Route Path Placeholder Preconditions</a></li>265 </ul>266 267 </div>268 </div>2 unmodified linesmodified:docs/migrate.html+2 added-2 removed
324 unmodified lines325 </code></pre>326 327 <h3>partial() locals</h3>328 329-<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>330 331 <pre><code> partial('user', { object: user, locals: { date: new Date }})332 </code></pre>333 32 unmodified lines366 </code></pre>367 368 <h3>View Partial Lookup</h3>369 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>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>371 372 <h3>Mime Types</h3>373 374 <p> Express and Connect now utilize the <em>mime</em> module in npm, so to add more use:</p>19 unmodified lines