mirror of
https://github.com/expressjs/expressjs.com.git
synced 2026-02-23 20:32:45 +00:00
287 lines
8.4 KiB
HTML
287 lines
8.4 KiB
HTML
<html>
|
|
<head>
|
|
<title>Express - node web framework</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
|
|
<script type="text/javascript">
|
|
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', 'UA-25235225-1']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(function() {
|
|
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
})();
|
|
|
|
</script>
|
|
<style>
|
|
|
|
#warning {
|
|
background: #cb0000;
|
|
color: #eeeeee;
|
|
border-radius: 3px;
|
|
padding: 10px 16px;
|
|
}
|
|
#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;
|
|
-webkit-font-smoothing: antialiased;
|
|
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;
|
|
text-decoration: none;
|
|
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; }
|
|
|
|
h1, h2, h3, h4 {
|
|
margin: 45px 0 0 0;
|
|
color: white;
|
|
text-shadow: 1px 2px 2px rgba(0,0,0,0.6); }
|
|
|
|
h3 {
|
|
font-size: 18px; }
|
|
h4 {
|
|
margin-left: 10px;
|
|
font-size: 14px;
|
|
}
|
|
|
|
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; }
|
|
ul li ul {
|
|
margin: 0;
|
|
padding-left: 12px;
|
|
}
|
|
|
|
.man-name, #Express { display:none; }
|
|
|
|
.sect {
|
|
margin-left: 40px; }
|
|
img {
|
|
margin-left: 20px;
|
|
margin-bottom: 15px;
|
|
}
|
|
|
|
#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;
|
|
padding-top: 80px;
|
|
width: 550px; }
|
|
|
|
#toc {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
margin: 0 0 0 15px;
|
|
padding: 15px;
|
|
height: 100%;
|
|
background: rgba(0,0,0,0.2);
|
|
overflow: auto;
|
|
border-right: 1px solid rgba(255,255,255,0.05);
|
|
}
|
|
#toc li {
|
|
padding: 0;
|
|
list-style: none;
|
|
}
|
|
#toc li a {
|
|
font-size: 11px;
|
|
}
|
|
#menu {
|
|
margin-left: 75px;
|
|
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);
|
|
-webkit-transition-property: opacity, -webkit-transform, color, background-color, -webkit-box-shadow;
|
|
-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>
|
|
<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>
|
|
</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>
|
|
<div id="warning">
|
|
<center><strong>Express 2.x</strong> IS NO LONGER MAINTAINED</center>
|
|
<p>Known and unknown security and performance issues in 2.x have not been addressed since the last update (29 June, 2012). It is highly recommended to use the latest version of Express.</p>
|
|
</div>
|
|
<p id="tagline">
|
|
High performance, high class web development for
|
|
<a href="http://nodejs.org">Node.js</a>
|
|
</p>
|
|
<ul id="menu">
|
|
<li><a href="index.html">Home</a></li>
|
|
<li><a href="guide.html">Guide</a></li>
|
|
<li><a href="screencasts.html">Screencasts</a></li>
|
|
<li><a href="applications.html">Applications</a></li>
|
|
</ul>
|
|
<pre><code>var app = express.createServer();
|
|
|
|
app.get('/', function(req, res){
|
|
res.send('Hello World');
|
|
});
|
|
|
|
app.listen(3000);
|
|
</code></pre>
|
|
|
|
<h2>Features</h2>
|
|
|
|
<ul>
|
|
<li>Robust routing</li>
|
|
<li>Redirection helpers</li>
|
|
<li>Dynamic view helpers</li>
|
|
<li>Application level view options</li>
|
|
<li>Content negotiation</li>
|
|
<li>Application mounting</li>
|
|
<li>Focus on high performance</li>
|
|
<li>View rendering and partials support</li>
|
|
<li>Environment based configuration</li>
|
|
<li>Session based flash notifications</li>
|
|
<li>Built on <a href="http://github.com/senchalabs/connect">Connect</a></li>
|
|
<li><a href="executable.html">Executable</a> for generating applications quickly</li>
|
|
<li>High test coverage</li>
|
|
</ul>
|
|
|
|
|
|
<h2>Contributors</h2>
|
|
|
|
<p>The following are the major contributors of Express (in no specific order).</p>
|
|
|
|
<ul>
|
|
<li>TJ Holowaychuk (<a href="http://github.com/visionmedia">visionmedia</a>)</li>
|
|
<li>Ciaran Jessup (<a href="http://github.com/ciaranj">ciaranj</a>)</li>
|
|
<li>Aaron Heckmann (<a href="http://github.com/aheckmann">aheckmann</a>)</li>
|
|
<li>Guillermo Rauch (<a href="http://github.com/guille">guille</a>)</li>
|
|
</ul>
|
|
|
|
|
|
<h2>Third-Party Modules</h2>
|
|
|
|
<p>The following modules complement or extend Express directly:</p>
|
|
|
|
<ul>
|
|
<li><a href="http://github.com/visionmedia/express-resource">express-resource</a> provides resourceful routing</li>
|
|
<li><a href="http://github.com/visionmedia/express-messages">express-messages</a> flash message notification rendering</li>
|
|
<li><a href="http://github.com/visionmedia/express-configuration">express-configure</a> async configuration support (load settings from redis etc)</li>
|
|
<li><a href="http://github.com/visionmedia/express-namespace">express-namespace</a> namespaced routing support</li>
|
|
<li><a href="http://github.com/visionmedia/express-expose">express-expose</a> expose objects, functions, modules and more to client-side js</li>
|
|
<li><a href="https://github.com/visionmedia/express-params">express-params</a> app.param() extensions</li>
|
|
<li><a href="https://github.com/LearnBoost/express-mongoose">express-mongoose</a> plugin for easy rendering of Mongoose async Query results</li>
|
|
</ul>
|
|
|
|
|
|
<h2>More Information</h2>
|
|
|
|
<ul>
|
|
<li>#express on freenode</li>
|
|
<li>Follow <a href="http://twitter.com/tjholowaychuk">tjholowaychuk</a> on twitter for updates</li>
|
|
<li><a href="http://groups.google.com/group/express-js">Google Group</a> for discussion</li>
|
|
<li>Visit the <a href="http://github.com/visionmedia/express/wiki">Wiki</a></li>
|
|
<li><a href="http://hideyukisaito.com/doc/expressjs/">日本語ドキュメンテーション</a> by <a href="https://github.com/hideyukisaito">hideyukisaito</a></li>
|
|
</ul>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|