Skip to content

Commit

Permalink
Changed docs to assume NPM installation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Morgan committed Sep 10, 2011
1 parent 48048f7 commit b55e980
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -77,15 +77,15 @@ As you would have noticed, the colon (:) and endfor directives have been replace
Within your application, you can use parrot like the following: Within your application, you can use parrot like the following:


```javascript ```javascript
var parrot = require('./lib/parrot'); var parrot = require('parrot');


var output = parrot.render(input); var output = parrot.render(input);
``` ```


Where the input variable is a string you would like parrot to render. If you would like to render a file, do the following: Where the input variable is a string you would like parrot to render. If you would like to render a file, do the following:


```javascript ```javascript
var parrot = require('./lib/parrot'); var parrot = require('parrot');
var fs = require('fs'); var fs = require('fs');
fs.readFile(file, encoding, function(err, data) { fs.readFile(file, encoding, function(err, data) {
if (err) throw err; if (err) throw err;
Expand Down

0 comments on commit b55e980

Please sign in to comment.