Skip to content

Commit

Permalink
Updated readme to reflect the latest API change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Morgan committed Aug 29, 2010
1 parent 25c87eb commit 91ad63f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Within your application, you can use parrot like the following:

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

var output = parrot(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:

Expand All @@ -25,7 +25,7 @@ Where the input variable is a string you would like parrot to render. If you wou
fs.readFile(file, function(data) {
var output = parrot(data);
var output = parrot.render(data);
});

Where file is a string value of the file you wish to render, and output is the rendered template.
Expand Down Expand Up @@ -71,7 +71,7 @@ If you wish to expose functions and variables to the script, you can provide the
return a * a;
}

var output = parrot(input, {
var output = parrot.render(input, {
square: square
});

Expand Down

0 comments on commit 91ad63f

Please sign in to comment.