2010-07-06 20:31:52 -07:00
|
|
|
<html>
|
|
|
|
|
<head>
|
|
|
|
|
<title>Express - node web framework</title>
|
2011-06-21 15:15:38 -07:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2010-09-13 11:11:47 -07:00
|
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
|
2010-07-06 20:31:52 -07:00
|
|
|
<style>
|
|
|
|
|
#tagline {
|
|
|
|
|
margin-left: 75px;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
color: rgba(255,255,255,0.7); }
|
|
|
|
|
html {
|
|
|
|
|
background: #1c1c1c url(images/bg.tile.jpg); }
|
|
|
|
|
|
|
|
|
|
body {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-bottom: 30px;
|
|
|
|
|
font: 14px/1.4 "Helvetica Neue", "Lucida Grande", "Arial";
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
line-height: 1.5;
|
2010-10-01 07:53:56 -07:00
|
|
|
-webkit-font-smoothing: antialiased;
|
2010-07-06 20:31:52 -07:00
|
|
|
background: url(images/bg.jpg) 50% 0 no-repeat;
|
|
|
|
|
color: #8b8b8b; }
|
|
|
|
|
|
|
|
|
|
* {
|
|
|
|
|
outline: none; }
|
|
|
|
|
|
|
|
|
|
em {
|
|
|
|
|
color: white; }
|
|
|
|
|
|
|
|
|
|
a img {
|
|
|
|
|
border: none !important; }
|
|
|
|
|
|
|
|
|
|
a {
|
|
|
|
|
font-weight: bold;
|
2010-07-15 13:08:34 -07:00
|
|
|
text-decoration: none;
|
2010-07-06 20:31:52 -07:00
|
|
|
color: white;
|
|
|
|
|
-webkit-transition-property: opacity, -webkit-transform, color, background-color, padding, -webkit-box-shadow;
|
|
|
|
|
-webkit-transition-duration: 0.15s;
|
|
|
|
|
-webkit-transition-timing-function: ease-out; }
|
|
|
|
|
a:hover {
|
|
|
|
|
opacity: 0.8; }
|
|
|
|
|
|
2010-10-01 07:51:19 -07:00
|
|
|
h1, h2, h3, h4 {
|
2010-07-06 20:31:52 -07:00
|
|
|
margin: 45px 0 0 0;
|
|
|
|
|
color: white;
|
|
|
|
|
text-shadow: 1px 2px 2px rgba(0,0,0,0.6); }
|
|
|
|
|
|
|
|
|
|
h3 {
|
|
|
|
|
font-size: 18px; }
|
2010-10-01 07:51:19 -07:00
|
|
|
h4 {
|
|
|
|
|
margin-left: 10px;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
}
|
2010-07-06 20:31:52 -07:00
|
|
|
|
|
|
|
|
pre {
|
|
|
|
|
margin: 20px 10px;
|
|
|
|
|
padding: 25px 20px;
|
|
|
|
|
background: rgba(0,0,0,0.5);
|
|
|
|
|
border: 1px solid #323232;
|
|
|
|
|
-webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.6);
|
|
|
|
|
-moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.6);
|
|
|
|
|
-webkit-border-radius: 5px;
|
|
|
|
|
-moz-border-radius: 5px; }
|
|
|
|
|
|
|
|
|
|
code {
|
|
|
|
|
font-family: "Helvetica Neue", "Lucida Grande", "Arial"; }
|
|
|
|
|
|
|
|
|
|
ul {
|
|
|
|
|
margin: 15px 0;
|
|
|
|
|
padding: 0 0 0 35px; }
|
|
|
|
|
ul li {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding: 2px 0;
|
|
|
|
|
list-style: square; }
|
2010-09-13 11:11:47 -07:00
|
|
|
ul li ul {
|
|
|
|
|
margin: 0;
|
|
|
|
|
padding-left: 12px;
|
|
|
|
|
}
|
2010-07-06 20:31:52 -07:00
|
|
|
|
2010-09-13 11:14:41 -07:00
|
|
|
.man-name, #Express { display:none; }
|
|
|
|
|
|
2010-07-06 20:31:52 -07:00
|
|
|
.sect {
|
|
|
|
|
margin-left: 40px; }
|
2010-10-16 19:18:31 -07:00
|
|
|
img {
|
|
|
|
|
margin-left: 20px;
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
}
|
2010-07-06 20:31:52 -07:00
|
|
|
|
|
|
|
|
#logo {
|
|
|
|
|
display: block;
|
|
|
|
|
margin-left: 30%;
|
|
|
|
|
margin-bottom: 30px;
|
|
|
|
|
width: 194px;
|
|
|
|
|
height: 51px;
|
|
|
|
|
background: url(images/logo.png) 0 0 no-repeat;
|
|
|
|
|
text-indent: -99999px; }
|
|
|
|
|
#logo:hover {
|
|
|
|
|
opacity: 0.7; }
|
|
|
|
|
#logo:active {
|
|
|
|
|
opacity: 0.3; }
|
|
|
|
|
|
|
|
|
|
#ribbon {
|
|
|
|
|
position: fixed;
|
|
|
|
|
top: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
z-index: 2; }
|
|
|
|
|
|
|
|
|
|
#wrapper {
|
|
|
|
|
width: 100%;
|
|
|
|
|
min-height: 800px;
|
|
|
|
|
background: url(images/top.png) 0 0 repeat-x; }
|
|
|
|
|
|
|
|
|
|
#container {
|
|
|
|
|
margin: 0 auto;
|
2010-08-17 13:15:54 -07:00
|
|
|
padding-top: 80px;
|
2010-07-06 20:31:52 -07:00
|
|
|
width: 550px; }
|
|
|
|
|
|
2010-07-15 12:49:57 -07:00
|
|
|
#toc {
|
|
|
|
|
position: fixed;
|
2010-08-17 13:15:54 -07:00
|
|
|
top: 0;
|
2010-07-15 12:49:57 -07:00
|
|
|
left: 0;
|
|
|
|
|
margin: 0 0 0 15px;
|
2010-07-15 13:06:56 -07:00
|
|
|
padding: 15px;
|
|
|
|
|
height: 100%;
|
|
|
|
|
background: rgba(0,0,0,0.2);
|
2010-08-27 10:13:08 -07:00
|
|
|
overflow: auto;
|
2010-07-15 13:06:56 -07:00
|
|
|
border-right: 1px solid rgba(255,255,255,0.05);
|
2010-07-15 12:49:57 -07:00
|
|
|
}
|
|
|
|
|
#toc li {
|
2010-07-16 07:33:33 -07:00
|
|
|
padding: 0;
|
2010-07-15 12:49:57 -07:00
|
|
|
list-style: none;
|
|
|
|
|
}
|
2010-07-15 13:06:56 -07:00
|
|
|
#toc li a {
|
|
|
|
|
font-size: 11px;
|
|
|
|
|
}
|
2010-07-06 20:31:52 -07:00
|
|
|
#menu {
|
2010-12-20 05:41:05 -08:00
|
|
|
margin-left: 75px;
|
2010-07-06 20:31:52 -07:00
|
|
|
padding: 0;
|
|
|
|
|
padding-bottom: 30px; }
|
|
|
|
|
#menu li {
|
|
|
|
|
display: inline;
|
|
|
|
|
list-style: none; }
|
|
|
|
|
#menu li a {
|
|
|
|
|
display: block;
|
|
|
|
|
float: left;
|
|
|
|
|
margin: 0 2px;
|
|
|
|
|
padding: 3px 15px;
|
|
|
|
|
background: rgba(0,0,0,0.2);
|
|
|
|
|
-webkit-border-radius: 8px;
|
|
|
|
|
-moz-border-radius: 8px;
|
|
|
|
|
-webkit-box-shadow: 1px 2px 2px rgba(0,0,0,0.6);
|
|
|
|
|
-moz-box-shadow: 1px 2px 2px rgba(0,0,0,0.6);
|
2010-07-12 17:46:26 -07:00
|
|
|
-webkit-transition-property: opacity, -webkit-transform, color, background-color, -webkit-box-shadow;
|
2010-07-06 20:31:52 -07:00
|
|
|
-webkit-transition-duration: 0.15s;
|
|
|
|
|
-webkit-transition-timing-function: ease-out; }
|
|
|
|
|
#menu li a:hover,
|
|
|
|
|
#menu li a.active {
|
|
|
|
|
background: rgba(0,0,0,0.5); }
|
|
|
|
|
#menu li a:active {
|
|
|
|
|
background: rgba(0,0,0,0.1);
|
|
|
|
|
-webkit-box-shadow: 1px 1px 1px rgba(0,0,0,0.4);
|
|
|
|
|
-moz-box-shadow: 1px 1px 1px rgba(0,0,0,0.4); }
|
|
|
|
|
</style>
|
2010-09-13 11:11:47 -07:00
|
|
|
<script>
|
|
|
|
|
$(function(){
|
|
|
|
|
$('.section').hide();
|
|
|
|
|
$('.toggle, a.section-title').toggle(function(){
|
|
|
|
|
$(this).siblings('ul').fadeIn(300);
|
|
|
|
|
return false;
|
|
|
|
|
}, function(){
|
|
|
|
|
$(this).siblings('ul').fadeOut(300);
|
|
|
|
|
return false;
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2010-07-06 20:31:52 -07:00
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<a href='http://github.com/visionmedia/express'>
|
|
|
|
|
<img alt='Fork me on GitHub' id='ribbon' src='http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png' />
|
|
|
|
|
</a>
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
<div id="container">
|
|
|
|
|
<a href='http://github.com/visionmedia/express' id='logo'>Express</a>
|
2010-07-12 16:47:30 -07:00
|
|
|
<p id="tagline">
|
|
|
|
|
High performance, high class web development for
|
|
|
|
|
<a href="http://nodejs.org">Node.js</a>
|
|
|
|
|
</p>
|
2010-07-12 16:42:11 -07:00
|
|
|
<ul id="menu">
|
|
|
|
|
<li><a href="index.html">Home</a></li>
|
|
|
|
|
<li><a href="guide.html">Guide</a></li>
|
2010-12-20 05:17:25 -08:00
|
|
|
<li><a href="screencasts.html">Screencasts</a></li>
|
2010-10-16 19:00:33 -07:00
|
|
|
<li><a href="applications.html">Applications</a></li>
|
2010-07-12 16:42:11 -07:00
|
|
|
</ul>
|
2011-03-18 09:18:29 -07:00
|
|
|
<h2>Synopsis</h2>
|
2010-07-06 20:31:52 -07:00
|
|
|
|
2011-03-18 09:18:29 -07:00
|
|
|
<pre><code>express [options] [PATH]
|
|
|
|
|
</code></pre>
|
2010-07-06 20:31:52 -07:00
|
|
|
|
2011-03-18 09:18:29 -07:00
|
|
|
<h2>Description</h2>
|
2010-07-06 20:31:52 -07:00
|
|
|
|
2011-03-18 09:18:29 -07:00
|
|
|
<p>The <em>express</em> executable generates apps at the given <strong>PATH</strong> or the
|
2010-07-06 20:31:52 -07:00
|
|
|
current working directory. Although Express is not bound to a specific
|
|
|
|
|
application structure, this executable creates a maintainable base app.</p>
|
|
|
|
|
|
2011-03-18 09:18:29 -07:00
|
|
|
<h2>Options</h2>
|
2010-07-06 20:31:52 -07:00
|
|
|
|
2011-03-03 15:07:35 -08:00
|
|
|
<pre><code> -s, --sessions Add session support
|
|
|
|
|
-t, --template ENGINE Add template ENGINE support (jade|ejs). Defaults to jade
|
|
|
|
|
-c, --css ENGINE Add stylesheet ENGINE support (less|sass|stylus). Defaults to plain css
|
|
|
|
|
-v, --version Output framework version
|
2011-03-18 09:18:29 -07:00
|
|
|
-h, --help Output help information
|
|
|
|
|
</code></pre>
|
2010-07-06 20:31:52 -07:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
2011-03-18 09:18:29 -07:00
|
|
|
</html>
|