Skip to content
Myr

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 5cd9a95 · Browse files · 7 files+21 added−21 removed
This commit

State

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

Diff stats

7 files+21 added−21 removed

  • other:+21 added−21 removed

7 files+21 added−21 removed

modified:docs/executable.1+8 added-7 removed
1.\" generated with Ronn/v0.7.32.\" http://github.com/rtomayko/ronn/tree/0.7.33.4.TH "EXECUTABLE" "" "November 2010" "" ""4.TH "EXECUTABLE" "" "March 2011" "" ""5.6.SH "NAME"7\fBexecutable\fR8.9.SH "Synopsis"10.11.nf1213express [\-h|\-\-help] [\-v|\-\-version] [\-c|\-css ENGINE] [PATH]13express [options] [PATH]14.15.fi16.17.SH "Description"18The \fBexpress\fR executable generates apps at the given \fBPATH\fR or the current working directory\. Although Express is not bound to a specific application structure, this executable creates a maintainable base app\.18The \fIexpress\fR executable generates apps at the given \fBPATH\fR or the current working directory\. Although Express is not bound to a specific application structure, this executable creates a maintainable base app\.19.20.SH "Options"21.22.nf2324\-s, \-\-sessions Add session support25\-c, \-\-css ENGINE Add css ENGINE support (less|sass)\. Defaults to plain css26\-v, \-\-version Output framework version27\-h, \-\-help Display help information24 \-s, \-\-sessions Add session support25 \-t, \-\-template ENGINE Add template ENGINE support (jade|ejs)\. Defaults to jade26 \-c, \-\-css ENGINE Add stylesheet ENGINE support (less|sass|stylus)\. Defaults to plain css27 \-v, \-\-version Output framework version28 \-h, \-\-help Output help information29.30.fi31
modified:docs/executable.html+7 added-6 removed
195 unmodified lines
196 <code>executable</code>197</p>198<h2 id="Synopsis">Synopsis</h2>199200<pre><code>express [-h|--help] [-v|--version] [-c|-css ENGINE] [PATH]200<pre><code>express [options] [PATH]201</code></pre>202203<h2 id="Description">Description</h2>204205<p>The <code>express</code> executable generates apps at the given <strong>PATH</strong> or the205<p>The <em>express</em> executable generates apps at the given <strong>PATH</strong> or the206current working directory. Although Express is not bound to a specific207application structure, this executable creates a maintainable base app.</p>208209<h2 id="Options">Options</h2>210211<pre><code>-s, --sessions Add session support212-c, --css ENGINE Add css ENGINE support (less|sass). Defaults to plain css213-v, --version Output framework version214-h, --help Display help information211<pre><code> -s, --sessions Add session support212 -t, --template ENGINE Add template ENGINE support (jade|ejs). Defaults to jade213 -c, --css ENGINE Add stylesheet ENGINE support (less|sass|stylus). Defaults to plain css214 -v, --version Output framework version215 -h, --help Output help information216</code></pre>217218</div>219 </div>
3 unmodified lines
modified:docs/guide.1+1 added-1 removed
1065 unmodified lines
1066.1067.P1068The \fIreq\.session\fR object also has methods such as \fISession#touch()\fR, \fISession#destroy()\fR, \fISession#regenerate()\fR among others to maintain and manipulate sessions\. For more information view the Connect Session \fIhttp://senchalabs\.github\.com/connect/middleware\-session\.html\fR documentation\.1069.1070.SS "2\.x Migration Guide"1070.SS "Migration Guide"1071Express 1\.x developers may reference the Migration Guide \fImigrate\.html\fR to get up to speed on how to upgrade your application to work with Express 2\.x, Connect 1\.x, and Node 0\.4\.x\.1072.1073.SS "req\.header(key[, defaultValue])"1074Get the case\-insensitive request header \fIkey\fR, with optional \fIdefaultValue\fR:
1012 unmodified lines
modified:docs/guide.html+2 added-4 removed
194 unmodified lines
195<li><a href="#View-Partials">View Partials</a></li>196<li><a href="#View-Lookup">View Lookup</a></li>197<li><a href="#Template-Engines">Template Engines</a></li>198<li><a href="#Session-Support">Session Support</a></li>199<li><a href="#" class="toggle">+</a> <a class="section-title" href="#">2</a><ul class="section" id="section-2">200<li><a href="#2-x-Migration-Guide">x Migration Guide</a></li>201</ul></li>199<li><a href="#Migration-Guide">Migration Guide</a></li>200<li><a href="#" class="toggle">+</a> <a class="section-title" href="#">Request</a><ul class="section" id="section-Request">201<li><a href="#req-header-key-defaultValue-">header()</a></li>202<li><a href="#req-accepts-type-">accepts()</a></li>203<li><a href="#req-is-type-">is()</a></li>
712 unmodified lines
916</code></pre>917918<p>The <em>req.session</em> object also has methods such as <em>Session#touch()</em>, <em>Session#destroy()</em>, <em>Session#regenerate()</em> among others to maintain and manipulate sessions. For more information view the <a href="http://senchalabs.github.com/connect/middleware-session.html">Connect Session</a> documentation.</p>919922<h3 id="2-x-Migration-Guide">2.x Migration Guide</h3>920<h3 id="Migration-Guide">Migration Guide</h3>921922<p> Express 1.x developers may reference the <a href="migrate.html">Migration Guide</a> to get up to speed on how to upgrade your application to work with Express 2.x, Connect 1.x, and Node 0.4.x.</p>923924<h3 id="req-header-key-defaultValue-">req.header(key[, defaultValue])</h3>
642 unmodified lines
modified:docs/guide.md+1 added-1 removed
600 unmodified lines
601 });602603The _req.session_ object also has methods such as _Session#touch()_, _Session#destroy()_, _Session#regenerate()_ among others to maintain and manipulate sessions. For more information view the [Connect Session](http://senchalabs.github.com/connect/middleware-session.html) documentation.604605### 2.x Migration Guide605### Migration Guide606607 Express 1.x developers may reference the [Migration Guide](migrate.html) to get up to speed on how to upgrade your application to work with Express 2.x, Connect 1.x, and Node 0.4.x.608609### req.header(key[, defaultValue])
568 unmodified lines
modified:docs/migrate.1+1 added-1 removed
184 unmodified lines
185.186.IP "" 0187.188.SS "View Partial Lookup"189Previously partials were loaded relative to the now removed \fIview partials\fR directory setting, or by default \fIviews/partials\fR, now they are relative to the view calling them, read more on view lookup \fIguide\.html#View\-lookup\fR\.189Previously partials were loaded relative to the now removed \fIview partials\fR directory setting, or by default \fIviews/partials\fR, now they are relative to the view calling them, read more on view lookup \fIguide\.html#View\-Lookup\fR\.190.191.SS "Mime Types"192Express and Connect now utilize the \fImime\fR module in npm, so to add more use:193.
10 unmodified lines
modified:docs/migrate.html+1 added-1 removed
307 unmodified lines
308</code></pre>309310<h3 id="View-Partial-Lookup">View Partial Lookup</h3>311312<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>312<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>313314<h3 id="Mime-Types">Mime Types</h3>315316<p> Express and Connect now utilize the <em>mime</em> module in npm, so to add more use:</p>
9 unmodified lines