Skip to content

Commit

Permalink
Subtle tweaks to the docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mjackson committed Sep 20, 2011
1 parent 210a83d commit b32caa2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion doc/01_introduction.js
@@ -1,5 +1,7 @@
/*
# Welcome to Strata!
# Introduction
Welcome to Strata!
[Strata](http://stratajs.org) is a fast, streaming web framework for [node.js](http://nodejs.org)
that is patterned after time-honored and battle tested web application design
Expand Down
15 changes: 8 additions & 7 deletions doc/13_gzip_compression.js
Expand Up @@ -39,11 +39,15 @@ of an app that serves static files.
var strata = require("strata"),
Builder = strata.Builder;

// For the sake of this example, the root directory where we store static files
// is the current working directory (i.e. $PWD).
var root = path.resolve(".");

var app = new Builder;

app.use(strata.commonLogger);
app.use(strata.gzip);
app.use(strata.static, __dirname);
app.use(strata.static, root);

module.exports = app;

Expand All @@ -53,13 +57,10 @@ and run it with:
$ strata app.js
The app will serve any static files that are in the same directory on disk. To
observe the gzip compression, use a client that is capable of accepting gzip
The app will serve any static files that are in the current working directory.
To observe the gzip compression, use a client that is capable of accepting gzip
encoding (i.e. sends an "Accept-Encoding: gzip" header in the request) and
request a text or JavaScript file from the app.
For example, to request the app file itself you could paste the following URL
into your browser:
http://localhost:1982/app.js
For example, to request the app file itself you could use [http://localhost:1982/app.js](http://localhost:1982/app.js).
*/

0 comments on commit b32caa2

Please sign in to comment.