Skip to content

Commit

Permalink
Update example.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogelio-o committed Dec 28, 2017
1 parent a23b60a commit 402aec3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@ AWS Lambda implementation of Lambda Framework.
### Creating the AWS Lambda handler

```typescript
import { App, IApp } from "lambda-framework";
import { App, IApp, ITemplateRenderer } from "lambda-framework";
importAWSHandler } from "lambda-framework-aws";

const app: IApp = new App();
...
const handler: AWSHandler = new AWSHandler(app);
const handle = handler.handle;
export { handle };
export const handle = handler.handle.bind(handler);
```

### Using S3 to retrieve the templates

```typescript
import { App, IApp } from "lambda-framework";
importAWSHandler, S3TemplateLoader } from "lambda-framework-aws";
import DustTemplateRenderer from "lambda-framework-dustjs";
import { DustTemplateRenderer } from "lambda-framework-dustjs";

const app: IApp = new App();
...
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
"devDependencies": {
"@types/chai": "^4.0.4",
"@types/mocha": "^2.2.43",
"@types/node": "^8.0.28",
"@types/sinon": "^2.3.7",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
Expand All @@ -44,8 +43,9 @@
"npm-auto-version": "^1.0.0"
},
"dependencies": {
"aws-sdk": "^2.161.0",
"@types/aws-lambda": "0.0.24",
"@types/node": "^8.0.28",
"aws-sdk": "^2.161.0",
"lambda-framework": "^1.1.0",
"node-cache": "^4.1.1"
},
Expand Down

0 comments on commit 402aec3

Please sign in to comment.